Browse files

[1.6.x] Fixed #21325 -- Added missing argument to permission_required…

… decorator.

Backport of cc2049c from master
  • Loading branch information...
1 parent 26e4576 commit 747f77552a08fffe1bb64f862d54cb8ffffb6904 @timgraham timgraham committed Oct 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/auth/default.txt
@@ -494,7 +494,7 @@ checks to make sure the user has an email in the desired domain::
The permission_required decorator
-.. function:: permission_required([login_url=None, raise_exception=False])
+.. function:: permission_required(perm, [login_url=None, raise_exception=False])
It's a relatively common task to check whether a user has a particular
permission. For that reason, Django provides a shortcut for that case: the

0 comments on commit 747f775

Please sign in to comment.