Re: ordering - how to using relation or db function

2007-02-18 Thread Honza Král
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

ordering - how to using relation or db function

2007-02-18 Thread VIK_Tomas
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