7
You don’t have to make your serializer a ModelSerializer if you don’t want to (maybe you already realize this, but I know I didn’t at first), you can just inherit from serializers.Serializer, with the fields you want. Something like
class MyModelSerializer(serializers.Serializer):
x = serializers.IntegerField()
y = serializers.IntegerField()
Then you just set up your view to use this serializer, grab the data from it and create/update the model in the view.
Source:stackexchange.com