Skip to content

Commit

Permalink
Fixed user_passes_test() signature in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinwahl authored and timgraham committed Dec 8, 2015
1 parent 82976e5 commit ec70880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/auth/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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``::
Expand Down

0 comments on commit ec70880

Please sign in to comment.