How do I find all the Members that bob shares a group with?
class Member(Model):
name = CharField(max_length=30)
class GroupMember(Model):
member = ForeignKey(Member)
group = ForeignKey(Group)
class Group(Model):
name = CharField(max_length=30)
Edit I didn’t notice that you didn’t have a ManyToMany relationship set up between Member and Group. You’ll need to add that:
now syncdb and it should work.