[Fixed]-Updating a nested many-to-many

1👍

You might try to subclass ModelSerializer instead of HyperlinkedModelSerializer and then supply the queryset argument for the PrimaryKeyRelatedField:

 categories = serializers.PrimaryKeyRelatedField(many=True,
                                                 queryset=Categories.objects.all())

Leave a comment