Still need help!
I have User, Project tables, assigned through the intermediate M2M
table Votes which has extra Date (date of the vote made) field.
In the template I want to list all the projects and order them by
votes count. I can order_by('-votes') because I'm using related_name
attribute, but if some project has more than 1 vote, it duplicated
this amount of times.
Please help me to ORDER BY M2M FIELD COUNT. Be happy)
Kostia.
--
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.