mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
fix topic creation
This commit is contained in:
parent
3521ad699e
commit
1ebfcdedec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user