You probably want to use a relational field (PrimaryKeyRelatedField or similar) and modify the query set used for it within your init method of your serializer. You should have access to the current request through the serializer context, and you can use it for filtering down the values accepted by your field.
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsub...@googlegroups.com.