Matias, On Thu, 24 Apr 2008, Matias Surdi wrote:
> I can't get to work the order_by('related_table.field') as described in > http://www.djangoproject.com/documentation/db-api/#order-by-fields > > Is this documentation correct? I think it's close. To get the above to work in cases were I've used it I had to also include a select_related() in the mix. For example, one place I use it looks like: brags = event.Brags.select_related().order_by('events_dog.Name') Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX Si hoc legere scis nimium eruditionis habes. Longum iter est per praecepta, breve et efficax per exempla!!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---