Hi,
I want to do something like:
Thing.objects.all().order_by("otherthing__count")
So there's a many-to-many between Thing and Otherthing, and I want to get a
list of Things in the order of most-otherthings joined - is there some easy,
Djangoish way to do it, or should I create a new field in Thing which holds the
number of Otherthings it's joined to?
Chris.
-------------------
http://mccormick.cx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---