Commit 1ebfcded authored by Krophil's avatar Krophil

fix topic creation

parent 3521ad69
Pipeline #1012 passed with stage
in 4 minutes and 12 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment