Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drf not getting form

#Add Generic View as below

class ModelListView(generics.ListCreateAPIView):
    """
    List all snippets, or create a new snippet.
    """
    queryset = ModelName.objects.all()
    serializer_class = ModelNameSerializer
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drf #form
ADD COMMENT
Topic
Name
6+7 =