mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-26 09:14:34 +03:00
Merge pull request #4396 from wimglenn/docs_bugfix
fix a b0rked code example in the permissions section of api guide
This commit is contained in:
commit
b508bc8da6
|
@ -92,7 +92,7 @@ Or, if you're using the `@api_view` decorator with function based views.
|
||||||
from rest_framework.permissions import IsAuthenticated
|
from rest_framework.permissions import IsAuthenticated
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
|
|
||||||
@api_view('GET')
|
@api_view(['GET'])
|
||||||
@permission_classes((IsAuthenticated, ))
|
@permission_classes((IsAuthenticated, ))
|
||||||
def example_view(request, format=None):
|
def example_view(request, format=None):
|
||||||
content = {
|
content = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user