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
1 changed files with 1 additions and 1 deletions

View File

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