X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/6e4c911e9bfed3ecd83427f5329ed024be9c62c6..c6c168511f18d8984901b2c828a47310a2d54d64:/forum/actions/node.py diff --git a/forum/actions/node.py b/forum/actions/node.py index cd39924..530c649 100644 --- a/forum/actions/node.py +++ b/forum/actions/node.py @@ -2,6 +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 class NodeEditAction(ActionProxy): def create_revision_data(self, initial=False, **data): @@ -201,6 +202,8 @@ class AnswerToQuestionAction(ActionProxy): def process_data(self, title): self.node.node_type = "question" self.node.title = title + self.node.active_revision.title = title + self.node.active_revision.save() self.node.last_edited = self self.node.update_last_activity(self.user, save=True)