diff options
| author | Yin Jifeng <jifeng.yin@gmail.com> | 2014-04-07 21:18:08 +0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-04-07 09:57:04 -0400 |
| commit | c148d8e7301856c5a2251dd4916df4a9f96e285e (patch) | |
| tree | 8735a492ee2a1885555405ab33cb3332e70a5651 /docs | |
| parent | 32c857908998503cd595311eebc9256d44f65803 (diff) | |
[1.7.x] Added missing request parameter to get_current_site().
Backport of d6c9bdd825 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/sites.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/sites.txt b/docs/ref/contrib/sites.txt index 7d1aa4adbf..57684ed420 100644 --- a/docs/ref/contrib/sites.txt +++ b/docs/ref/contrib/sites.txt @@ -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` |
