Re: help with queryset and ManytoMany

2007-02-02 Thread sandro.dentella
> > class Project > > ... > > staff = models.ManyToMany(User) > > > My concern is the fact that I should loop over all my projects and get > > the staff for each ot them. > > If Project has a ManyToMany field, then Users will have a field called > project_set. > > frank = User.objects.get

Re: help with queryset and ManytoMany

2007-02-01 Thread Russell Keith-Magee
On 2/1/07, Giorgio Salluzzo <[EMAIL PROTECTED]> wrote: > > class Project > ... > staff = models.ManyToMany(User) > > My concern is the fact that I should loop over all my projects and get > the staff for each ot them. If Project has a ManyToMany field, then Users will have a field called