Re: Creating multiple related objects to a given QuerySet without evaluating the QuerySet

2010-01-05 Thread David
Alright, thanks Daniel. On Jan 5, 1:12 am, Daniel Roseman wrote: > On Jan 4, 11:40 pm, David wrote: > > > I have a QuerySet of Books, and I want to create an Action for each > > Book in that QuerySet. I want to avoid evaluating the Books QuerySet, > > but the only way I can think of doing what I

Re: Creating multiple related objects to a given QuerySet without evaluating the QuerySet

2010-01-05 Thread Daniel Roseman
On Jan 4, 11:40 pm, David wrote: > I have a QuerySet of Books, and I want to create an Action for each > Book in that QuerySet. I want to avoid evaluating the Books QuerySet, > but the only way I can think of doing what I want to do evaluates it. > For example, > > def create_actions(books, action

Creating multiple related objects to a given QuerySet without evaluating the QuerySet

2010-01-04 Thread David
I have a QuerySet of Books, and I want to create an Action for each Book in that QuerySet. I want to avoid evaluating the Books QuerySet, but the only way I can think of doing what I want to do evaluates it. For example, def create_actions(books, action) books is a QuerySet of Book"""