Skip to content

Commit

Permalink
[1.7.x] Fixed typos in docs (django.contrib.site)
Browse files Browse the repository at this point in the history
Backport of 907ac64 from master.
  • Loading branch information
Thomas Schreiber authored and bmispelon committed Mar 21, 2014
1 parent 563d6a6 commit 7998926
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/ref/contrib/sites.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ If you often use this pattern::
...

there is simple way to avoid repetitions. Add
:class:`django.contrib.site.middleware.CurrentSiteMiddleware` to
:class:`django.contrib.sites.middleware.CurrentSiteMiddleware` to
:setting:`MIDDLEWARE_CLASSES`. The middleware sets the ``site`` attribute on
every request object, so you can use ``request.site`` to get the current site.

Expand Down
2 changes: 1 addition & 1 deletion docs/ref/middleware.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Enables session support. See the :doc:`session documentation
Site middleware
---------------

.. module:: django.contrib.site.middleware
.. module:: django.contrib.sites.middleware
:synopsis: Site middleware.

.. class:: CurrentSiteMiddleware
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/1.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ Minor features
:mod:`django.contrib.sites`
^^^^^^^^^^^^^^^^^^^^^^^^^^^

* The new :class:`django.contrib.site.middleware.CurrentSiteMiddleware` allows
* The new :class:`django.contrib.sites.middleware.CurrentSiteMiddleware` allows
setting the current site on each request.

:mod:`django.contrib.staticfiles`
Expand Down

0 comments on commit 7998926

Please sign in to comment.