>> 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
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.
--~--
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
3 matches
Mail list logo