From ed7ea5a6020cb3e09a7f05c4206a11196766bbd2 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 22 May 2012 13:13:44 +0200 Subject: [PATCH] Fixed #18113 -- Corrected get_template_names docstrings. Thanks Keryn Knight for the report. --- django/views/generic/detail.py | 2 +- django/views/generic/list.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/views/generic/detail.py b/django/views/generic/detail.py index a2adb15d47..d4fb37124d 100644 --- a/django/views/generic/detail.py +++ b/django/views/generic/detail.py @@ -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() diff --git a/django/views/generic/list.py b/django/views/generic/list.py index 50127066a1..9f6e0e130c 100644 --- a/django/views/generic/list.py +++ b/django/views/generic/list.py @@ -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()