From eeae584570fc3901daceb8e151ebf99c91a5fb00 Mon Sep 17 00:00:00 2001 From: jordan Date: Sat, 9 Apr 2011 20:40:34 +0000 Subject: [PATCH] #OSQA-581, resetting the answer count cache after the comment has been converted to answer. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@956 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/actions/node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forum/actions/node.py b/forum/actions/node.py index 263839a..53699e9 100644 --- a/forum/actions/node.py +++ b/forum/actions/node.py @@ -189,6 +189,8 @@ class CommentToAnswerAction(ActionProxy): self.node.last_edited = self self.node.update_last_activity(self.user, save=True) + # Now updated the cached data + question.reset_answer_count_cache() def describe(self, viewer=None): return _("%(user)s converted comment on %(question)s into an answer") % { -- 2.39.5