summaryrefslogtreecommitdiff
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:57:46 -0500
commitd34de856e511cff77b8b3b9e1c7f30bcdcd2543a (patch)
tree01ed0a629aab28118291cdac43dd5e369eaaa636
parentcdc354eb39085bb03f90216509611c279bf368f5 (diff)
[1.8.x] Fixed user_passes_test() signature in docs.
Backport of ec708803f70d51dda21845799de8c62d02611808 from master
-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 146cf8773d..1a6089213c 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -513,7 +513,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``::