Explorar o código

Added missing request parameter to get_current_site().

Yin Jifeng %!s(int64=11) %!d(string=hai) anos
pai
achega
d6c9bdd825
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/ref/contrib/sites.txt

+ 1 - 1
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`