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 consider it an ugly hack....

On 2/18/07, VIK_Tomas <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> how to set modelClass.Meta.ordering = ( ... )
>   for sorting same as "ORDER BY (description IS NULL)"
>
>   or same as "ORDER BY LOWER(item)"
>
> Thx
>
>
> >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to