diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-25 21:54:25 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-26 08:50:47 +0100 |
| commit | 9ffab9cee1a5bd1a2f6c326ae970d92526f9a304 (patch) | |
| tree | ebc84834a786fa4d99e651b68376e9e142967074 /docs/topics/auth | |
| parent | ca95f8e4359325567fa441eef8f18cb710850eeb (diff) | |
Moved RequestSite and get_current_site.
Following the app-loading refactor, these objects must live outside of
django.contrib.sites.models because they must be available without
importing the django.contrib.sites.models module when
django.contrib.sites isn't installed.
Refs #21680. Thanks Carl and Loic for reporting this issue.
Diffstat (limited to 'docs/topics/auth')
| -rw-r--r-- | docs/topics/auth/default.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index a721fb548c..5d93e432a4 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -648,7 +648,7 @@ patterns. * ``site``: The current :class:`~django.contrib.sites.models.Site`, according to the :setting:`SITE_ID` setting. If you don't have the site framework installed, this will be set to an instance of - :class:`~django.contrib.sites.models.RequestSite`, which derives the + :class:`~django.contrib.sites.requests.RequestSite`, which derives the site name and domain from the current :class:`~django.http.HttpRequest`. @@ -744,7 +744,7 @@ patterns. * ``site``: The current :class:`~django.contrib.sites.models.Site`, according to the :setting:`SITE_ID` setting. If you don't have the site framework installed, this will be set to an instance of - :class:`~django.contrib.sites.models.RequestSite`, which derives the + :class:`~django.contrib.sites.requests.RequestSite`, which derives the site name and domain from the current :class:`~django.http.HttpRequest`. |
