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):
|
def get_template_names(self):
|
||||||
"""
|
"""
|
||||||
Return a list of template names to be used for the request. Must return
|
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:
|
try:
|
||||||
names = super(SingleObjectTemplateResponseMixin, self).get_template_names()
|
names = super(SingleObjectTemplateResponseMixin, self).get_template_names()
|
||||||
|
|
|
@ -136,7 +136,7 @@ class MultipleObjectTemplateResponseMixin(TemplateResponseMixin):
|
||||||
def get_template_names(self):
|
def get_template_names(self):
|
||||||
"""
|
"""
|
||||||
Return a list of template names to be used for the request. Must return
|
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:
|
try:
|
||||||
names = super(MultipleObjectTemplateResponseMixin, self).get_template_names()
|
names = super(MultipleObjectTemplateResponseMixin, self).get_template_names()
|
||||||
|
|
Loading…
Reference in New Issue