Hey guys,
I am kind of stuck... This is the situation. I got a Match Model, a Player Model and a Team model. Here is what models look like so far: Match Model (simplified version) home_team = ForeignKey(Team) visitor_team = ForeignKey(Team) result time player = ManyToManyField(Player) Player Model (simplified version) name team = ForeignKey(Team) Team Model (simplified version) name Match has many to many relationship with Player (Player particiaptes in a match) Match has a foreign field Home Team Match has a foreign field Visitor Team. Team has a one to many relationship with Player What I would like to do is when editing the match, be able to see 2 manytomany fields but filtered by teams. For example, the first manytomany field will only show players from the host team and the second manytomany field will only show players form the visitor team... I have no idea where to start.... Really stuck... Thanks a lot, Ara -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8f9ec338-6ef6-4273-a7ca-a797aff310fb%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.