mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
[1.7.x] Added missing request parameter to get_current_site().
Backport of d6c9bdd825
from master
This commit is contained in:
parent
32c8579089
commit
c148d8e730
@ -486,7 +486,7 @@ the ``domain`` and ``name`` by looking at the request's domain. It has
|
|||||||
Finally, to avoid repetitive fallback code, the framework provides a
|
Finally, to avoid repetitive fallback code, the framework provides a
|
||||||
:func:`django.contrib.sites.shortcuts.get_current_site` function.
|
:func:`django.contrib.sites.shortcuts.get_current_site` function.
|
||||||
|
|
||||||
.. function:: shortcuts.get_current_site
|
.. function:: shortcuts.get_current_site(request)
|
||||||
|
|
||||||
A function that checks if ``django.contrib.sites`` is installed and
|
A function that checks if ``django.contrib.sites`` is installed and
|
||||||
returns either the current :class:`~django.contrib.sites.models.Site`
|
returns either the current :class:`~django.contrib.sites.models.Site`
|
||||||
|
Loading…
Reference in New Issue
Block a user