1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Clarified a contrib.sites deprecation and added to 1.7 release notes.

This commit is contained in:
Tim Graham
2015-01-18 13:29:33 -05:00
parent 3b89d2d540
commit ba27f89587
3 changed files with 18 additions and 5 deletions

View File

@@ -472,9 +472,10 @@ a fallback when the database-backed sites framework is not available.
Sets the ``name`` and ``domain`` attributes to the value of
:meth:`~django.http.HttpRequest.get_host`.
.. versionchanged:: 1.7
.. deprecated:: 1.7
This class used to be defined in ``django.contrib.sites.models``.
This class used to be defined in ``django.contrib.sites.models``. The
old import location will work until Django 1.9.
A :class:`~django.contrib.sites.requests.RequestSite` object has a similar
interface to a normal :class:`~django.contrib.sites.models.Site` object,
@@ -498,9 +499,10 @@ Finally, to avoid repetitive fallback code, the framework provides a
object or a :class:`~django.contrib.sites.requests.RequestSite` object
based on the request.
.. versionchanged:: 1.7
.. deprecated:: 1.7
This function used to be defined in ``django.contrib.sites.models``.
The old import location will work until Django 1.9.
.. versionchanged:: 1.8