From 1ebfcdedecbe424f2a49ce51fd62fecf2dbd55c2 Mon Sep 17 00:00:00 2001 From: Krophil Date: Fri, 2 Jun 2017 10:55:42 +0200 Subject: [PATCH] fix topic creation --- forum/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/views.py b/forum/views.py index f2f1aec0..b8ab8ad1 100644 --- a/forum/views.py +++ b/forum/views.py @@ -155,7 +155,7 @@ class ForumTopicCreateView(CanCreateMixin, CreateView): return super(ForumTopicCreateView, self).dispatch(request, *args, **kwargs) def form_valid(self, form): - topic = ForumTopic(title=form.instance.title, author=self.request.user, forum=self.forum) + topic = ForumTopic(_title=form.instance.title, author=self.request.user, forum=self.forum) topic.save() form.instance.topic = topic form.instance.author = self.request.user