On 9/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > So to fix this, I tried going the other direction, by filtering on > UserProfile, and then ordering the results on User, doing this: > > UserProfile.objects.filter(board_member=True).order_by('auth_user.last_name')
What happens when you instead do UserProfile.objects.filter(board_member=True).order_by('user__last_name') ? (and maybe make sure you slap a 'select_related' in before that order_by) -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---