Hi Guys,

I am having difficulty figuring out how to filter my fields choices by the 
logged in User. Does anyone know how this works?
 
question = 
serializers.ChoiceField(choices=Question.objects.filter(user=serializers.CurrentUserDefault()))
 
# tried

Thanks

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to