self.repute(self.node.author, int(settings.REP_GAIN_BY_ACCEPTED))\r
\r
def process_action(self):\r
- self.node.parent.extra_ref = self.node\r
- self.node.parent.save()\r
self.node.marked = True\r
self.node.nstate.accepted = self\r
self.node.save()\r
+ self.node.question.reset_accepted_count_cache()\r
\r
def cancel_action(self):\r
- self.node.parent.extra_ref = None\r
- self.node.parent.save()\r
self.node.marked = False\r
self.node.nstate.accepted = None\r
self.node.save()\r
+ self.node.question.reset_accepted_count_cache()\r
\r
def describe(self, viewer=None):\r
answer = self.node\r