[Answer]-How to make serializer to accept id insted of url for related object.

1👍

I so I just needed to use serializers.ModelSerializer instead of serializers.HyperlinkedModelSerializer.

More about it [here]

👤Pol

Leave a comment