mirror of
https://github.com/django/django.git
synced 2024-12-24 18:16:19 +00:00
Fixed #18113 -- Corrected get_template_names docstrings.
Thanks Keryn Knight for the report.
This commit is contained in:
parent
6ed7d40727
commit
ed7ea5a602
@ -108,7 +108,7 @@ class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
|
||||
def get_template_names(self):
|
||||
"""
|
||||
Return a list of template names to be used for the request. Must return
|
||||
a list. May not be called if get_template is overridden.
|
||||
a list. May not be called if render_to_response is overridden.
|
||||
"""
|
||||
try:
|
||||
names = super(SingleObjectTemplateResponseMixin, self).get_template_names()
|
||||
|
@ -136,7 +136,7 @@ class MultipleObjectTemplateResponseMixin(TemplateResponseMixin):
|
||||
def get_template_names(self):
|
||||
"""
|
||||
Return a list of template names to be used for the request. Must return
|
||||
a list. May not be called if get_template is overridden.
|
||||
a list. May not be called if render_to_response is overridden.
|
||||
"""
|
||||
try:
|
||||
names = super(MultipleObjectTemplateResponseMixin, self).get_template_names()
|
||||
|
Loading…
Reference in New Issue
Block a user