On 1/20/06, Smudgy <[EMAIL PROTECTED]> wrote: > And how to write something like this expression: > bazs.get_list(order_by=['bardata']) - sort by field of another table.
Hi Smudgy,
To order by a field in a different table, add the other table's name
and a dot, like so:
bazs.get_list(order_by=['bars.bardata'])
I just added a section to the docs explaining this:
http://www.djangoproject.com/documentation/db_api/#ordering
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org
