I've got a Players model
I've got a Game models with roster, a M2M relationship with players,
to select the players actually playing in that particular game
And I've got a Play model with a foreignkey to Players. What I want is
to limit the list of players to the ones that are actually on the
roster for that game.

In my head, it should be something like
playmaker           = models.ForeignKey(Player, limit_choices_to=
{'id': 'game__roster'},

Or am I looking at it all wrong? Should I build a choice list from
roster on the fly and use that? OR can I just foreignKey straight to
Game__roster?

Help!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to