mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Fix typo in permission_classes
This commit is contained in:
parent
c09a579851
commit
919c5e1e01
|
@ -52,7 +52,7 @@ Or, if you're using the `@api_view` decorator with function based views.
|
|||
|
||||
@api_view(['GET'])
|
||||
@authentication_classes((SessionAuthentication, BasicAuthentication))
|
||||
@permissions_classes((IsAuthenticated,))
|
||||
@permission_classes((IsAuthenticated,))
|
||||
def example_view(request, format=None):
|
||||
content = {
|
||||
'user': unicode(request.user), # `django.contrib.auth.User` instance.
|
||||
|
|
Loading…
Reference in New Issue
Block a user