Perhaps use "order_with_respect_to"? I've never used myself but from
the docs looks like it is what you're looking for.

http://www.djangoproject.com/documentation/model_api/#meta-options

On 1/20/06, Smudgy <[EMAIL PROTECTED]> wrote:
>
> Hi folks. Please tell me how can I do such thing...
>
> I have
>
> class Bar(meta.Model):
>     bardata = meta.CharField(maxlength=200)
> class Baz(meta.Model):
>     bazdata = meta.CharField(maxlength=200)
>     bar = meta.OneToOneField(Bar)
>
> bazs.get_list(order_by=['bazdata'])  will return me ordered by bazdata
> field list .
>
> And how to write something like this expression:
>  bazs.get_list(order_by=['bardata'])  - sort by field of another table.
>
> Thanks.
>
>


--
---
Julio Nobrega - http://www.inerciasensorial.com.br

Reply via email to