RelationshipView doesn't provide a way to modify relations queryset for fetching and validation
SafaAlfulaij opened this issue · 0 comments
SafaAlfulaij commented
There is no way to change the queryset used for fetching the related input field but to subclass the class and replace all of to_internal_value.
Vanilla DRF provides a queryset parameter for related fields to do the mentioned. Checkout:
https://github.com/encode/django-rest-framework/blob/master/rest_framework/relations.py#L243-L260