Add import to example in api-guide/parsers (#5547)

This commit is contained in:
Danilo Akamine 2017-10-30 12:11:54 -04:00 committed by Carlton Gibson
parent 2b6245db53
commit 4249245123

View File

@ -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 parser_classes
from rest_framework.parsers import JSONParser
@api_view(['POST'])
@parser_classes((JSONParser,))