mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.6.x] Fixed #22113 -- changed object_name to model_name in CBV docs.
Thanks to trac user nikunj.sg for the report.
Backport of b887408486 from master.
This commit is contained in:
committed by
Baptiste Mispelon
parent
a36513c2b4
commit
79cc1fa58d
@@ -124,7 +124,7 @@ class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
|
||||
* the value of ``template_name`` on the view (if provided)
|
||||
* the contents of the ``template_name_field`` field on the
|
||||
object instance that the view is operating upon (if available)
|
||||
* ``<app_label>/<object_name><template_name_suffix>.html``
|
||||
* ``<app_label>/<model_name><template_name_suffix>.html``
|
||||
"""
|
||||
try:
|
||||
names = super(SingleObjectTemplateResponseMixin, self).get_template_names()
|
||||
|
||||
Reference in New Issue
Block a user