On Nov 23, 5:19 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > You might also be able to write > > coll.members.order_by('membership_set')
Works (with a small modification)! In order to get template for loops working I wrapped this in a Collection method: class Collection(models.Model): # ... a lot left out here ... def ordered_members(self): coll = Collection.objects.get(name=self.name) return coll.members.order_by('membership') With this for t in coll.ordered_members(): print t ...does what I wanted it to do. Thanks a lot! Benjamin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---