Re: Ordering by table field connected in OneToOne relation.

2006-01-22 Thread Smudgy
I've found solution(by hacking code): choices.get_list(order_by=['poll_polls.pub_date'], select_related=True) This works fine. Thanks

Re: Ordering by table field connected in OneToOne relation.

2006-01-22 Thread Smudgy
[EMAIL PROTECTED] myproject]$ python manage.py shell Python 2.4.1 (#1, May 16 2005, 15:19:29) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.models.polls import * >>> polls.get_list() [Wha

Re: Ordering by table field connected in OneToOne relation.

2006-01-20 Thread Smudgy
As I read, 'order_in_respect` Is just adds '_order` field. Something like immutable order for local table. :(

Ordering by table field connected in OneToOne relation.

2006-01-20 Thread Smudgy
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 bazda