Merge branch 'bugfix' into 'master'

fix topic creation

See merge request !76
This commit is contained in:
Skia 2017-06-02 10:57:24 +02:00
commit cef2230640

View File

@ -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