Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

can serializer returns an object in django

if serializer.is_valid()
   # serializer.data // returns a dictionary
   return serializer.instance # returns the object
 
PREVIOUS NEXT
Tagged: #serializer #returns #object #django
ADD COMMENT
Topic
Name
9+8 =