Fixed doc typos.

This commit is contained in:
Tim Graham 2014-02-28 11:44:03 -05:00
parent 55fb162588
commit 7f2505ad9e
27 changed files with 38 additions and 38 deletions

View file

@ -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.

View file

@ -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()``.