Hi
The linked solution is okay, but involves calling that method in all views and that is just a lot of extra work. The serializer has access to all the information needed to perform this task I think, but I cannot get access to the queryset in order to actually make the changes.
For context: I am building a custom serializer that inherits from ModelSerializer, that is to be used whenever this kind of behavior is required.
Can someone point me to a place where I can intercept (and change) the queryset on the serializer instance?