]> git.parisson.com Git - teleforma.git/commitdiff
fix no Conference.streaming
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 2 May 2019 09:08:31 +0000 (11:08 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 2 May 2019 09:08:31 +0000 (11:08 +0200)
teleforma/models/core.py

index 450ac26b076ddb58528bd0d0838c8ecc88c2c563..f05927b7419455fbcd44f7fa6ae7e2fe86baa758 100644 (file)
@@ -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'])