On Sun, May 22, 2011 at 05:42:00PM -0700, Chris Beaven wrote:
> Isn't the first suggestion (__contains) achievable already by just chaining
> two filters: Group.objects.filter(persons=p1).filter(persons=p2) ?
Sure, but if I want to filter on several different numbers of persons,
it gets very
Isn't the first suggestion (__contains) achievable already by just chaining
two filters: Group.objects.filter(persons=p1).filter(persons=p2) ?
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to
Hello all,
Earlier I was trying to filter for objects that had a set of other
objects related to them by a ManyToManyField. It's a bit awkward, and
I have a couple of proposals to improve it.
Consider the following models:
class Person(models.Model):
name =