Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

perform_update serializer django

def update(self,request,*args,**kwargs):
    instance = self.get_object()
    instance.sender = self.get_user()
    serializer = self.get_serializer(instance,data = request.data)
    self.perform_update(serializer)
    return Response(serializer.data)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #serializer #django
ADD COMMENT
Topic
Name
6+1 =