Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #21325 -- Added missing argument to permission_required decorator.

  • Loading branch information...
commit cc2049cdd7f7afa3ffdccf5ef77af84a9abbf8f9 1 parent 3b02933
Tim Graham timgraham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/auth/default.txt
2  docs/topics/auth/default.txt
View
@@ -492,7 +492,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
Please sign in to comment.
Something went wrong with that request. Please try again.