Re: filtering the join table in a many-to-many relationship

2009-06-01 Thread Ben Adida
ends.all() but how do I get the Friend objects that are "great", but not others? In other words, how do I impose a constraint on the Friendship join- table when I do bob.friends? -Ben On Jun 1, 7:59 pm, Sam Chuparkoff wrote: > On Mon, 2009-06-01 at 16:01 -0700, Ben Adida wrote: > &

filtering the join table in a many-to-many relationship

2009-06-01 Thread Ben Adida
Hi folks, I've looked through the forum and can't find an answer to this one. I have a ManyToMany self relationship with a custom join table (I don't think the self-reference is important to the problem, but it might be, so I'm mentioning it): class Documents related_docs = models.ManyToManyF