[1.9.x] Fixed user_passes_test() signature in docs.

Backport of ec708803f7 from master
This commit is contained in:
Gavin Wahl 2015-12-08 13:38:13 -07:00 committed by Tim Graham
parent abd870651c
commit 55fa19e4a6
1 changed files with 1 additions and 1 deletions

View File

@ -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``::