From ec708803f70d51dda21845799de8c62d02611808 Mon Sep 17 00:00:00 2001 From: Gavin Wahl Date: Tue, 8 Dec 2015 13:38:13 -0700 Subject: [PATCH] Fixed user_passes_test() signature in docs. --- docs/topics/auth/default.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 119e768f66..046b7731c0 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -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``::