On Aug 5, 9:33 pm, Subhranath Chunder <subhran...@gmail.com> wrote: > Not the exact answer you were looking for, but I was only wondering, if you > have already figured the actual SQL query then why not simply use that > instead.
You loose many things by not using the ORM. Currently I use raw() SQL for making these kind of queries, but I would like to use the ORM for it. Sadly, the GROUP BY support is rather limited as far as I can see. I mostly posted this to see if anyone had any suggestions to solving these kind of GROUP BY `problems` with the current django ORM. -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.