Skip to content

Commit 4249245

Browse files
daniloakaminecarltongibson
authored andcommitted
Add import to example in api-guide/parsers (#5547)
1 parent 2b6245d commit 4249245

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/api-guide/parsers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Or, if you're using the `@api_view` decorator with function based views.
5454

5555
from rest_framework.decorators import api_view
5656
from rest_framework.decorators import parser_classes
57+
from rest_framework.parsers import JSONParser
5758

5859
@api_view(['POST'])
5960
@parser_classes((JSONParser,))

0 commit comments

Comments
 (0)