Commit c148d8e7 authored by Yin Jifeng's avatar Yin Jifeng Committed by Tim Graham
Browse files

[1.7.x] Added missing request parameter to get_current_site().

Backport of d6c9bdd8 from master
parent 32c85790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
: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
    returns either the current :class:`~django.contrib.sites.models.Site`