Re: Returning a Queryset

2007-12-19 Thread Malcolm Tredinnick
On Wed, 2007-12-19 at 02:17 -0800, Rufman wrote: > > but I'd be interested in > > hearing the use-case you're wanting to solve. > > > > I'm using GROUP BY, so I need to use raw sql. I want to use a > QuerySet, so that I can use the ForeignKey mapping and for the sake of > consistency in the way

Re: Returning a Queryset

2007-12-19 Thread Rufman
> but I'd be interested in > hearing the use-case you're wanting to solve. > I'm using GROUP BY, so I need to use raw sql. I want to use a QuerySet, so that I can use the ForeignKey mapping and for the sake of consistency in the way I render things in the template. Stephane

Re: Returning a Queryset

2007-12-18 Thread Malcolm Tredinnick
On Tue, 2007-12-18 at 00:16 -0800, Rufman wrote: > Hey guys > > Is there a way to return a QuerySet object, when I make my own custom > sql? No. Part of the reason is that it's not particularly useful in the general case and very easy to get into trouble. A QuerySet has a lot of methods that

Returning a Queryset

2007-12-18 Thread Rufman
Hey guys Is there a way to return a QuerySet object, when I make my own custom sql? Stephane --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to