mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #22113 -- changed object_name to model_name in CBV docs.
Thanks to trac user nikunj.sg for the report.
This commit is contained in:
committed by
Baptiste Mispelon
parent
7e1376c2b0
commit
b887408486
@@ -154,7 +154,7 @@ MultipleObjectMixin
|
||||
the list of data that this view is manipulating. If
|
||||
``object_list`` is a queryset of Django objects and
|
||||
:attr:`context_object_name` is not set,
|
||||
the context name will be the ``object_name`` of the model that
|
||||
the context name will be the ``model_name`` of the model that
|
||||
the queryset is composed from, with postfix ``'_list'``
|
||||
appended. For example, the model ``Article`` would have a
|
||||
context object named ``article_list``.
|
||||
@@ -210,4 +210,4 @@ MultipleObjectTemplateResponseMixin
|
||||
Returns a list of candidate template names. Returns the following list:
|
||||
|
||||
* the value of ``template_name`` on the view (if provided)
|
||||
* ``<app_label>/<object_name><template_name_suffix>.html``
|
||||
* ``<app_label>/<model_name><template_name_suffix>.html``
|
||||
|
||||
Reference in New Issue
Block a user