mirror of https://github.com/django/django.git
Fixed #26392 -- Corrected login_required/permission_required stacking example.
This commit is contained in:
parent
49ac10b4de
commit
c41737dc00
|
@ -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):
|
||||
...
|
||||
|
||||
|
|
Loading…
Reference in New Issue