> I am but what parameter do I give to Count? My entity model don't have
> a comments field it is just connected through the view where I do {%
> load comments %}?

Marlun, despite I can't reply to your question (no idea if sorting by
generic relations is possible; would be great to hear a response from
Django developers), I would definitely advise to denormalize your data
in this case. Adding an IntegerField and updating it via signals on
post_save will simplify and speed up things.

cheers,
Andy
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to