How do I filter on a field in a related object?
问题 If I try to filter on a field in a related object then Tastypie returns an error. For example, running curl -H "Accept: application/json" \ "http://localhost:8080/wordgame/api/v1/rounds/?format=json&players__username=moe" returns "Lookups are not allowed more than one level deep on the 'players' field." Essentially, I am trying to do what I can currently do in the Django shell: Round.objects.all().filter(players__username=moe.username) I am using the following code, which I simplified for