]> git.openstreetmap.org Git - osqa.git/commitdiff
change the Denormalized Field for the flaged actions count
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 27 Jan 2012 16:13:38 +0000 (16:13 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 27 Jan 2012 16:13:38 +0000 (16:13 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1227 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/node.py

index cc17941df91f1987591b68b710110bb0ccacbe27..6694426a478b3738198c8f1adfca8de7b487e820 100644 (file)
@@ -245,7 +245,7 @@ class Node(BaseModel, NodeContent):
     marked = models.BooleanField(default=False)
 
     comment_count = DenormalizedField("children", node_type="comment", canceled=False)
-    flag_count = DenormalizedField("flags")
+    flag_count = DenormalizedField("actions", action_type="flag", canceled=False)
 
     friendly_name = _("post")