There is something you might use as a workaround, which is to use a property in the model.
I had a template where I wanted to list all the names of members of a workgroup, sorted by last name. The template had this: {% for item in workgroup.list|dictsort:"user_last_name" %} And in the workgroup model, there was this: def _get_user_last_name(self): return self.user.last_name user_last_name = property(_get_user_last_name) May not be as efficient as doing it in the query, but it's a lot clearer for me than all those dots and underscores :) -- Derek --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---