Re: ManyToMany Field - is an object in their or not.

2008-06-19 Thread phillc
either way, the database is hit to check that. so if your goal is to minimize, getting true and false instead of the record has no advantage. just check if there is something returned. On Jun 19, 10:14 am, timc3 <[EMAIL PROTECTED]> wrote: > I have a situation where I want a true or false to wheth

ManyToMany Field - is an object in their or not.

2008-06-19 Thread timc3
I have a situation where I want a true or false to whether an object is in a manytomany. For instance, I have my users, and have created (separate to the standard django groups) a groups table called GroupsOfUser with a relationships defined as: group_members = models.ManyToManyField(User, verbo