[1.8.x] Fixed #25229 -- Clarified how an iterable works with @permission_required

Backport of 16a8d01308 from master
This commit is contained in:
Tim Graham 2015-08-05 17:13:45 -04:00
parent ce0f2a4a4f
commit a7fb311ace
1 changed files with 2 additions and 1 deletions

View File

@ -595,7 +595,8 @@ The permission_required decorator
.. versionchanged:: 1.7
The :func:`~django.contrib.auth.decorators.permission_required`
decorator can take a list of permissions as well as a single permission.
decorator can take a list of permissions, in which case the user must
have all of the permissions in order to access the view.
.. _applying-permissions-to-generic-views: