From: Guillaume Pellerin Date: Tue, 14 Mar 2017 17:02:44 +0000 (+0100) Subject: fix call input X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e802422a588cf109f961fea62f168c4d2a5d0dce;p=mezzo.git fix call input --- diff --git a/app/organization/projects/views.py b/app/organization/projects/views.py index 7793bfd5..7130564f 100644 --- a/app/organization/projects/views.py +++ b/app/organization/projects/views.py @@ -155,6 +155,7 @@ class ProjectICTCreateView(ProjectCallMixin, CreateWithInlinesView): def forms_valid(self, form, inlines): self.object = form.save() + self.call = ProjectCall.objects.get(slug=self.kwargs['slug']) self.object.call = self.call self.object.topic, c = ProjectTopic.objects.get_or_create(name='ICT') self.object.save()