]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/reputation.py
convertd comments to nodes
[osqa.git] / forum / reputation.py
index 4a0fe7ea92754b37b4a473250328963ec48577fe..8ee3469ba27b62205c440a32064a8260f9c1e3ac 100644 (file)
@@ -1,5 +1,5 @@
 from django.db.models.signals import post_save\r
-from forum.models.meta import vote_canceled\r
+from forum.models.base import mark_canceled\r
 from forum.models.answer import answer_accepted, answer_accepted_canceled\r
 \r
 from forum.models import *\r
@@ -93,7 +93,7 @@ def on_vote_canceled(instance, **kwargs):
 \r
         post.author.reputes.create(value=repute_value, question=question, reputation_type=repute_type)\r
 \r
-vote_canceled.connect(on_vote_canceled)\r
+mark_canceled.connect(on_vote_canceled, sender=Vote)\r
 \r
 \r
     \r