summaryrefslogtreecommitdiff
path: root/docs/topics/auth
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:37:46 -0400
commit4b4b795bd56782ddbbecf427d0ae88b27d896ee8 (patch)
tree7539e6826e6c1be9357b09b299e3ee9e2ed93657 /docs/topics/auth
parentcd59b6f2f3b7a304438e99379a57844840e6b3a6 (diff)
[1.5.x] Fixed #21325 -- Added missing argument to permission_required decorator.
Backport of cc2049cdd7 from master
Diffstat (limited to 'docs/topics/auth')
-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 a104a5c966..6914f9e6a1 100644
--- a/docs/topics/auth/default.txt
+++ b/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