I believe the reason for this is the notification system.
I would recommend doing something like this:
class MyModel(models.Model): ... def save(self, silent=False, *args, **kwargs):
But if you need, this is (theoretically) how you do it (code not verified):
from rest_framework import serializers, viewsets class MyModelSerializer(serializers.ModelSerializer): def save_object(self, obj, **kwargs): """ Save the deserialized object. """ if getattr(obj, '_nested_forward_relations', None):
demux source share