\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