question.save()
self.node = question
question.save()
self.node = question
+ self.user.message_set.create(message=self.describe(self.user))
+
def describe(self, viewer=None):
return _("%(user)s asked %(question)s") % {
'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)),
def describe(self, viewer=None):
return _("%(user)s asked %(question)s") % {
'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)),
def process_action(self):
self.node.question.reset_answer_count_cache()
def process_action(self):
self.node.question.reset_answer_count_cache()
+ self.user.message_set.create(message=self.describe(self.user))
+
+
def describe(self, viewer=None):
question = self.node.parent
return _("%(user)s answered %(asker)s on %(question)s") % {
def describe(self, viewer=None):
question = self.node.parent
return _("%(user)s answered %(asker)s on %(question)s") % {