diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-25 17:36:07 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-25 17:37:39 -0400 |
| commit | 747f77552a08fffe1bb64f862d54cb8ffffb6904 (patch) | |
| tree | d081ee6dfa30a9ff07d3e06ea5b783b003c05f10 | |
| parent | 26e45766812ff75d6a9595729a4c45bd56badb3e (diff) | |
[1.6.x] Fixed #21325 -- Added missing argument to permission_required decorator.
Backport of cc2049cdd7 from master
| -rw-r--r-- | docs/topics/auth/default.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index f9fdcd5642..32de31a825 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 |
