
You cannot call `.save()` after accessing `serializer.data`.If you need to access data before committing to the database
written codes: Error Showing.. As the above error says, “If you need to access data before committing to the database then inspect ‘serializer.validated_data’ [...]