summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorersran9 <sreenidimn@gmail.com>2013-08-07 21:33:31 +0530
committerTim Graham <timograham@gmail.com>2013-08-10 10:10:18 -0400
commit00d23a13ebaf6057d1428e798bfb6cf47bb5ef7c (patch)
tree518db88f66ff84905cdccf899adbeb4e6adf0fc3 /docs/topics
parent5737c57d95cc8c17b1aa2da4809f70ad4c212716 (diff)
Fixed #20828 -- Allowed @permission_required to take a list of permissions
Thanks Giggaflop for the suggestion.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/auth/default.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 7dff9cdca7..78bf820e89 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -528,6 +528,11 @@ The permission_required decorator
(HTTP Forbidden) view<http_forbidden_view>` instead of redirecting to the
login page.
+ .. versionchanged:: 1.7
+
+ The :func:`~django.contrib.auth.decorators.permission_required`
+ decorator can take a list of permissions as well as a single permission.
+
Applying permissions to generic views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~