[1.8.x] Fixed #25229 -- Clarified how an iterable works with @permission_required
Backport of 16a8d01308
from master
This commit is contained in:
parent
ce0f2a4a4f
commit
a7fb311ace
|
@ -595,7 +595,8 @@ The permission_required decorator
|
||||||
.. versionchanged:: 1.7
|
.. versionchanged:: 1.7
|
||||||
|
|
||||||
The :func:`~django.contrib.auth.decorators.permission_required`
|
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:
|
.. _applying-permissions-to-generic-views:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue