From d34de856e511cff77b8b3b9e1c7f30bcdcd2543a Mon Sep 17 00:00:00 2001 From: Gavin Wahl Date: Tue, 8 Dec 2015 13:38:13 -0700 Subject: [PATCH] [1.8.x] Fixed user_passes_test() signature in docs. Backport of ec708803f70d51dda21845799de8c62d02611808 from master --- 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 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``::