On 11/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The order_by method does not support joined tables: > .order_by('author__username')
Hi dcramer, This is slightly inelegant, but you can specify the SQL table name in order_by(): order_by('myapp_authors.username') Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---