Re: queryset which returns the same result several times

2011-09-01 Thread Tom Evans
On Thu, Sep 1, 2011 at 1:39 PM, Julien Castets wrote: > hello www, > > This is the model: > > from django.contrib.auth.models import User > > class Task(models.Model): >  creator = models.ForeignKey(User) >  assigned_to = models.ManyToManyField(User) > > And there are four

queryset which returns the same result several times

2011-09-01 Thread Julien Castets
hello www, This is the model: from django.contrib.auth.models import User class Task(models.Model): creator = models.ForeignKey(User) assigned_to = models.ManyToManyField(User) And there are four users: bob, roger, dan and joe I want to get all the tasks where the current user is the