AFAIK this is currently not possible with django's ORM, you can work
around that by using:
queryset.order_by().extra( where=[ ' 1=1 ORDER BY whatever' ] )
which means: on queryset, reset sorting and to where clause append 1=1
(so if the SQL has correct syntax) and ORDER BY whatever...
but I consi
Hi,
how to set modelClass.Meta.ordering = ( ... )
for sorting same as "ORDER BY (description IS NULL)"
or same as "ORDER BY LOWER(item)"
Thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
2 matches
Mail list logo