From: Guillaume Pellerin Date: Thu, 2 May 2019 09:08:31 +0000 (+0200) Subject: fix no Conference.streaming X-Git-Tag: 1.4.1~27 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6821044944b84f721fd5d8892659d28fbadcebb5;p=teleforma.git fix no Conference.streaming --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 450ac26b..f05927b7 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -415,10 +415,11 @@ class Conference(models.Model): self.course, c = Course.objects.get_or_create(code=data['course_code']) self.course_type, c = CourseType.objects.get_or_create(name=data['course_type']) - if data['streaming'] == 'False': - self.streaming = False - else: - self.streaming = True + if 'streaming' in data: + if data['streaming'] == 'False': + self.streaming = False + else: + self.streaming = True organization, c = Organization.objects.get_or_create(name=data['organization'])