Added missing punctuation in django/shortcuts.py docstring.
This commit is contained in:
parent
d917c17a3b
commit
4710753875
|
@ -51,8 +51,8 @@ def redirect(to, *args, permanent=False, **kwargs):
|
||||||
|
|
||||||
* A URL, which will be used as-is for the redirect location.
|
* A URL, which will be used as-is for the redirect location.
|
||||||
|
|
||||||
By default issues a temporary redirect; pass permanent=True to issue a
|
Issues a temporary redirect by default; pass permanent=True to issue a
|
||||||
permanent redirect
|
permanent redirect.
|
||||||
"""
|
"""
|
||||||
redirect_class = HttpResponsePermanentRedirect if permanent else HttpResponseRedirect
|
redirect_class = HttpResponsePermanentRedirect if permanent else HttpResponseRedirect
|
||||||
return redirect_class(resolve_url(to, *args, **kwargs))
|
return redirect_class(resolve_url(to, *args, **kwargs))
|
||||||
|
|
Loading…
Reference in New Issue