mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Add import to example in api-guide/parsers (#5547)
This commit is contained in:
parent
2b6245db53
commit
4249245123
|
@ -54,6 +54,7 @@ Or, if you're using the `@api_view` decorator with function based views.
|
||||||
|
|
||||||
from rest_framework.decorators import api_view
|
from rest_framework.decorators import api_view
|
||||||
from rest_framework.decorators import parser_classes
|
from rest_framework.decorators import parser_classes
|
||||||
|
from rest_framework.parsers import JSONParser
|
||||||
|
|
||||||
@api_view(['POST'])
|
@api_view(['POST'])
|
||||||
@parser_classes((JSONParser,))
|
@parser_classes((JSONParser,))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user