Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18113 -- Corrected get_template_names docstrings.

Thanks Keryn Knight for the report.
  • Loading branch information...
commit ed7ea5a6020cb3e09a7f05c4206a11196766bbd2 1 parent 6ed7d40
@claudep claudep authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  django/views/generic/detail.py
  2. +1 −1  django/views/generic/list.py
View
2  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()
View
2  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()
Please sign in to comment.
Something went wrong with that request. Please try again.