mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Fixed #12829 - typos introduced in [12400]
Thanks Alex. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
eaee55e547
commit
4682d693c4
@ -1082,7 +1082,7 @@ The permission_required decorator
|
||||
|
||||
from django.contrib.auth.decorators import permission_required
|
||||
|
||||
permission_required('polls.can_vote')
|
||||
@permission_required('polls.can_vote')
|
||||
def my_view(request):
|
||||
...
|
||||
|
||||
@ -1095,7 +1095,7 @@ The permission_required decorator
|
||||
|
||||
from django.contrib.auth.decorators import permission_required
|
||||
|
||||
permission_required('polls.can_vote', login_url='/loginpage/')
|
||||
@permission_required('polls.can_vote', login_url='/loginpage/')
|
||||
def my_view(request):
|
||||
...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user