Fixed #25229 -- Clarified how an iterable works with @permission_required
This commit is contained in:
parent
520802160a
commit
16a8d01308
|
@ -660,7 +660,8 @@ The ``permission_required`` decorator
|
||||||
(i.e. ``polls.can_vote`` for a permission on a model in the ``polls``
|
(i.e. ``polls.can_vote`` for a permission on a model in the ``polls``
|
||||||
application).
|
application).
|
||||||
|
|
||||||
The decorator may also take an iterable of permissions.
|
The decorator may also take an iterable of permissions, in which case the
|
||||||
|
user must have all of the permissions in order to access the view.
|
||||||
|
|
||||||
Note that :func:`~django.contrib.auth.decorators.permission_required()`
|
Note that :func:`~django.contrib.auth.decorators.permission_required()`
|
||||||
also takes an optional ``login_url`` parameter::
|
also takes an optional ``login_url`` parameter::
|
||||||
|
|
Loading…
Reference in New Issue