diff options
| author | Tim Graham <timograham@gmail.com> | 2014-02-28 11:44:03 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-02-28 11:44:03 -0500 |
| commit | 7f2505ad9e27962ecbd61d2ce26ad691727404a4 (patch) | |
| tree | cc71ebbbae410c45abf05c517434659c8029ccb1 /docs/topics/class-based-views | |
| parent | 55fb16258888443bc70398248b6e681f3bc032c8 (diff) | |
Fixed doc typos.
Diffstat (limited to 'docs/topics/class-based-views')
| -rw-r--r-- | docs/topics/class-based-views/generic-display.txt | 2 | ||||
| -rw-r--r-- | docs/topics/class-based-views/mixins.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/class-based-views/generic-display.txt b/docs/topics/class-based-views/generic-display.txt index 57c7a0d02f..9c5527dac5 100644 --- a/docs/topics/class-based-views/generic-display.txt +++ b/docs/topics/class-based-views/generic-display.txt @@ -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. diff --git a/docs/topics/class-based-views/mixins.txt b/docs/topics/class-based-views/mixins.txt index 8e7b4561e9..f79bf1160e 100644 --- a/docs/topics/class-based-views/mixins.txt +++ b/docs/topics/class-based-views/mixins.txt @@ -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()``. |
