>> 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
I need to use this SQL command in my Django application
select subject, count(subject) as 'count' from mimi_blogs group by
subject order by count desc;
How must I rewrite that command so that Django paginator can
understand it properly?
Thank you for help
L.
--~--~-~--~~
4 matches
Mail list logo