You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In get_serializer, instantiate serialiser and set the queryset on the field in question. (This is the same strategy as with Django Forms.) (Those links should work.) — Good luck
Currently I am using:
on my
ModelViewSet
to limit access (per: http://www.django-rest-framework.org/api-guide/filtering#djangoobjectpermissionsfilter). The problem is that on the browseable API, the drop down list for aPrimaryKeyRelatedField
still shows all of the possible options. Is there an easy way to filter the set of choices used based on the user, etc?These do not seem to work:
The text was updated successfully, but these errors were encountered: