summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-25 17:36:07 -0400
committerTim Graham <timograham@gmail.com>2013-10-25 17:36:07 -0400
commitcc2049cdd7f7afa3ffdccf5ef77af84a9abbf8f9 (patch)
treeb53d32936d98c8b79bdcded2a4c10a84c9511edd
parent3b0293370a35704c9b3c50e5f50b9c4e6edfd680 (diff)
Fixed #21325 -- Added missing argument to permission_required decorator.
-rw-r--r--docs/topics/auth/default.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index d7efd3e858..7e475e9d2a 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -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