summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGavin Wahl <gwahl@fusionbox.com>2015-12-08 13:38:13 -0700
committerTim Graham <timograham@gmail.com>2015-12-08 15:56:10 -0500
commitec708803f70d51dda21845799de8c62d02611808 (patch)
treeb7c40253c958cfbca5ab7af66bd388a4f0ba3f12 /docs
parent82976e5c3f7abf20dfd4c3cc5aa586e57edef104 (diff)
Fixed user_passes_test() signature in docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth/default.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 119e768f66..046b7731c0 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -555,7 +555,7 @@ redirects to the login page::
return redirect('/login/?next=%s' % request.path)
# ...
-.. function:: user_passes_test(func, login_url=None, redirect_field_name='next')
+.. function:: user_passes_test(test_func, login_url=None, redirect_field_name='next')
As a shortcut, you can use the convenient ``user_passes_test`` decorator
which performs a redirect when the callable returns ``False``::