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:38 -0500 |
| commit | 55fa19e4a6ec1f9fa400b927b6101966c7801cbe (patch) | |
| tree | a8307815164affb21991f3daab1a9f26370139ea /docs | |
| parent | abd870651c7de87b4b1340d966d0140cc802cac7 (diff) | |
[1.9.x] Fixed user_passes_test() signature in docs.
Backport of ec708803f70d51dda21845799de8c62d02611808 from master
Diffstat (limited to 'docs')
| -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 9292354d32..9a2bbef76b 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -556,7 +556,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``:: |
