Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Backport of d6c9bdd from master
  • Loading branch information...
commit c148d8e7301856c5a2251dd4916df4a9f96e285e 1 parent 32c8579
尹吉峰 flisky authored timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/contrib/sites.txt
2  docs/ref/contrib/sites.txt
View
@@ -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`
Please sign in to comment.
Something went wrong with that request. Please try again.