32👍
model_obj = serializer.save()
model_obj
holds the model instance and you can perform actions accordingly.
or you can write create()
or update()
method mentioned in official doc
Deserializing objects:
https://www.django-rest-framework.org/api-guide/serializers/#deserializing-objects
Source:stackexchange.com