Re: Ordering a ManyToManyField with "through" relation

2008-11-23 Thread Benjamin Hell
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.Mod

Ordering a ManyToManyField with "through" relation

2008-11-22 Thread Benjamin Hell
Hi! I tried to find a solution to the following problem in the documentation, but without success. I have a model which (simplified for this problem description) consists of two classes "Collection" and "Thing", which are related through a "Membership" class using the "through=" keyword. The Memb