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 I render things in the template.

So what you really want is group-by support in Querysets, which is
something for the future. This isn't the same as arbitrary SQL returning
true QuerySets (which is hard/impossible for the reasons I mentioned
previously).

Malcolm

-- 
For every action there is an equal and opposite criticism. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to