Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
261 B
1
Indexable
Never
def update(self, request, *args, **kwargs):
    serializer = self.serializer_class(request.user, data=request.data, partial=True)
    serializer.is_valid(raise_exception=True)
    serializer.save()
    return Response(serializer.data, status=status.HTTP_200_OK)