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:54:34 -0400 |
| commit | d6c9bdd8258fec4d0b4270903e95a42847796608 (patch) | |
| tree | b132f8cc7a3bb36df71ed4634ce826b62f43d9f0 /docs/ref | |
| parent | 3cba90f22a9120ebf9b00d1d074b8fb2152ecd2e (diff) | |
Added missing request parameter to get_current_site().
Diffstat (limited to 'docs/ref')
| -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 3e330a0f70..d0281cbe96 100644 --- a/docs/ref/contrib/sites.txt +++ b/docs/ref/contrib/sites.txt @@ -482,7 +482,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` |
