Hi there, Using django magic removal atm.
I have been unable to find out any way of ordering objects by columns from foreign tables. for e.g. if i have: class Foo(models.Model): blah = models.TextField() date = models.DateTime() class Bar(models.Model): foo = models.ForeignKey(Foo) baz = models.TextField() I want to effectively be able to say Bar.objects.all().order_by(Foo.date) it seems like the only solution (as far as i can tell) is to process the returned array, and order by the returned date. This seems uneccessary since you can do it in sql. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---