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`