]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/actions/meta.py
Delted questions were not updating tag count.
[osqa.git] / forum / actions / meta.py
index b16f4f994124cb930051d0b005a1cc5ded8cc9e4..1862cb3113c04c2910e7bb0992958153ea5c8459 100644 (file)
@@ -171,15 +171,13 @@ class FavoriteAction(ActionProxy):
 \r
 class DeleteAction(ActionProxy):\r
     def process_action(self):\r
-        self.node.deleted = self\r
-        self.node.save()\r
+        self.node.mark_deleted(self)\r
         \r
         if self.node.node_type == "answer":\r
             self.node.question.reset_answer_count_cache()\r
 \r
     def cancel_action(self):\r
-        self.node.deleted = None\r
-        self.node.save()\r
+        self.node.mark_deleted(None)\r
 \r
         if self.node.node_type == "answer":\r
             self.node.question.reset_answer_count_cache()\r