1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +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:
Marcin Sokół
2014-02-22 17:54:32 +01:00
committed by Baptiste Mispelon
parent 7e1376c2b0
commit b887408486
4 changed files with 7 additions and 7 deletions

View File

@@ -73,7 +73,7 @@ SingleObjectMixin
Return the context variable name that will be used to contain the
data that this view is manipulating. If :attr:`context_object_name` is
not set, the context name will be constructed from the ``object_name``
not set, the context name will be constructed from the ``model_name``
of the model that the queryset is composed from. For example, the model
``Article`` would have context object named ``'article'``.
@@ -130,4 +130,4 @@ SingleObjectTemplateResponseMixin
* 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``