From: jordan Date: Sat, 9 Apr 2011 20:40:34 +0000 (+0000) Subject: #OSQA-581, resetting the answer count cache after the comment has been converted... X-Git-Tag: live~356 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/eeae584570fc3901daceb8e151ebf99c91a5fb00?ds=sidebyside #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 --- 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") % {