Fixed #18113 -- Corrected get_template_names docstrings.

Thanks Keryn Knight for the report.
This commit is contained in:
Claude Paroz 2012-05-22 13:13:44 +02:00
parent 6ed7d40727
commit ed7ea5a602
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()