Re: How to rewrite SQL for Django

2007-08-13 Thread Tim Chase
>> You cannot. Django does not do aggregates like GROUP BY yet. You will >> have to use manual sql to get those values. > > Thanks for your reply. > But how to use sql together with Django so that I can use advantages > of paginator? You can inject SQL into your query with the .extra() call (I

Re: How to rewrite SQL for Django

2007-08-13 Thread Pythoni
On Aug 13, 2:45 am, Collin Grady <[EMAIL PROTECTED]> wrote: > You cannot. Django does not do aggregates like GROUP BY yet. You will > have to use manual sql to get those values. Thanks for your reply. But how to use sql together with Django so that I can use advantages of paginator? L. --~--

Re: How to rewrite SQL for Django

2007-08-12 Thread Collin Grady
You cannot. Django does not do aggregates like GROUP BY yet. You will have to use manual sql to get those values. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema