I need to get entries from database with counts of comments. Can i do it with django s comment framework? I am also using a voting application which is not using GenericForeignKeys i get entries with scores like this:
class EntryManager(models.ModelManager):
def get_queryset(self):
return super(EntryManager,self).get_queryset(self).all().annotate(
score=Sum("linkvote__value"))
但是,当有外国骑师时,我就被 st。 你们是否对此有任何想法?
extra explaination: i need to fetch entries like this:
id | body | vote_score | comment_score |
1 | foo | 13 | 4 |
2 | bar | 4 | 1 |
在这样做之后,即可以通过评论命令他们:
Thans for all replies.