mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed doc typos.
This commit is contained in:
parent
55fb162588
commit
7f2505ad9e
27 changed files with 38 additions and 38 deletions
|
@ -189,7 +189,7 @@ specifies the context variable to use::
|
|||
|
||||
class PublisherList(ListView):
|
||||
model = Publisher
|
||||
context_object_name = 'my_favourite_publishers'
|
||||
context_object_name = 'my_favorite_publishers'
|
||||
|
||||
Providing a useful ``context_object_name`` is always a good idea. Your
|
||||
coworkers who design templates will thank you.
|
||||
|
|
|
@ -303,7 +303,7 @@ object. In order to do this, we need to have two different querysets:
|
|||
Since both :class:`~django.views.generic.detail.SingleObjectMixin` and
|
||||
:class:`ListView` will
|
||||
put things in the context data under the value of
|
||||
``context_object_name`` if it's set, we'll instead explictly
|
||||
``context_object_name`` if it's set, we'll instead explicitly
|
||||
ensure the ``Publisher`` is in the context data. :class:`ListView`
|
||||
will add in the suitable ``page_obj`` and ``paginator`` for us
|
||||
providing we remember to call ``super()``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue