From 00d23a13ebaf6057d1428e798bfb6cf47bb5ef7c Mon Sep 17 00:00:00 2001 From: ersran9 Date: Wed, 7 Aug 2013 21:33:31 +0530 Subject: Fixed #20828 -- Allowed @permission_required to take a list of permissions Thanks Giggaflop for the suggestion. --- docs/releases/1.7.txt | 3 +++ docs/topics/auth/default.txt | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 6c28d6e1d0..ec37b382d4 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -135,6 +135,9 @@ Minor features ``Meta`` option allows you to customize (or disable) creation of the default add, change, and delete permissions. +* The :func:`~django.contrib.auth.decorators.permission_required` decorator can + take a list of permissions as well as a single permission. + Backwards incompatible changes in 1.7 ===================================== 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` 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3