Fixed #25229 -- Clarified how an iterable works with @permission_required

This commit is contained in:
Tim Graham 2015-08-05 17:13:45 -04:00
parent 520802160a
commit 16a8d01308
1 changed files with 2 additions and 1 deletions

View File

@ -660,7 +660,8 @@ The ``permission_required`` decorator
(i.e. ``polls.can_vote`` for a permission on a model in the ``polls``
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()`
also takes an optional ``login_url`` parameter::