summaryrefslogtreecommitdiffstats
path: root/forum/models/answer.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/models/answer.py')
-rwxr-xr-xforum/models/answer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/forum/models/answer.py b/forum/models/answer.py
index e7847f32..3fd08d98 100755
--- a/forum/models/answer.py
+++ b/forum/models/answer.py
@@ -10,7 +10,7 @@ markdowner = Markdown(html4tags=True)
from question import Question
class AnswerManager(models.Manager):
- def create_new(cls, question=None, author=None, added_at=None, wiki=False, text='', email_notify=False):
+ def create_new(self, question=None, author=None, added_at=None, wiki=False, text='', email_notify=False):
answer = Answer(
question = question,
author = author,
@@ -177,7 +177,7 @@ class AnonymousAnswer(AnonymousContent):
def publish(self,user):
added_at = datetime.datetime.now()
#print user.id
- AnswerManager.create_new(question=self.question,wiki=self.wiki,
+ Answer.objects.create_new(question=self.question,wiki=self.wiki,
added_at=added_at,text=self.text,
author=user)
self.delete()