diff options
| author | Gavin Wahl <gwahl@fusionbox.com> | 2015-12-08 13:38:13 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-08 15:57:46 -0500 |
| commit | d34de856e511cff77b8b3b9e1c7f30bcdcd2543a (patch) | |
| tree | 01ed0a629aab28118291cdac43dd5e369eaaa636 | |
| parent | cdc354eb39085bb03f90216509611c279bf368f5 (diff) | |
[1.8.x] Fixed user_passes_test() signature in docs.
Backport of ec708803f70d51dda21845799de8c62d02611808 from master
| -rw-r--r-- | docs/topics/auth/default.txt | 2 |
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``:: |
