> > 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
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
2 matches
Mail list logo