Folks,

In spirit of recent question regarding custom 'where'...  Is there a way to
put a custom ORDER BY into QuerySet?  I have an sql function that does all
the math on db side and would like to use it at order_by clause

I quickly skimmed _get_sql_clause and haven't found any way to incorporate
something like "ORDER BY calc_post_rating(id)".

Am I wrong or is the only way to have this to override/hack
_QuerySet._get_sql_clause?

TIA!

-- 
Andrey V Khavryuchenko            
Django NewGate -  http://www.kds.com.ua/djiggit/
Development - http://www.kds.com.ua OR skype://akhavr

--~--~---------~--~----~------------~-------~--~----~
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