X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/dcacc3b4c2ba2f550806a2d22b183f6fac4f63ff..9bea91a74f63f694e5497f38998730e6f8ada1c5:/forum/actions/node.py diff --git a/forum/actions/node.py b/forum/actions/node.py index f9f2206..8a4760b 100644 --- a/forum/actions/node.py +++ b/forum/actions/node.py @@ -2,7 +2,7 @@ from django.utils.html import strip_tags from django.utils.translation import ugettext as _ from forum.models.action import ActionProxy from forum.models import Comment, Question, Answer, NodeRevision -import logging +from forum import settings, REQUEST_HOLDER from django.contrib import messages @@ -30,7 +30,7 @@ class AskAction(NodeEditAction): question.save() self.node = question - messages.info(request, self.describe(self.user)) + messages.info(REQUEST_HOLDER.request, self.describe(self.user)) def describe(self, viewer=None): return _("%(user)s asked %(question)s") % { @@ -49,7 +49,7 @@ class AnswerAction(NodeEditAction): def process_action(self): self.node.question.reset_answer_count_cache() - messages.info(request, self.describe(self.user)) + messages.info(REQUEST_HOLDER.request, self.describe(self.user)) def describe(self, viewer=None):