1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #26392 -- Corrected login_required/permission_required stacking example.

This commit is contained in:
Tim Graham 2016-03-21 19:56:15 -04:00
parent 49ac10b4de
commit c41737dc00

View File

@ -712,8 +712,8 @@ The ``permission_required`` decorator
from django.contrib.auth.decorators import login_required, permission_required
@permission_required('polls.can_vote', raise_exception=True)
@login_required
@permission_required('polls.can_vote', raise_exception=True)
def my_view(request):
...