]> git.parisson.com Git - teleforma.git/commitdiff
try to fix conf create
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 17 Jul 2013 15:45:32 +0000 (17:45 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 17 Jul 2013 15:45:32 +0000 (17:45 +0200)
teleforma/models/core.py
teleforma/views/core.py

index 05665902873d73ebb5d3dd4bbb9c85661a5a0d26..ea0a09b8a0bcc236c6db5d362ec185662e7cb3f1 100644 (file)
@@ -363,8 +363,6 @@ class Conference(Model):
         if 'room' in data.keys():
             self.room, c = Room.objects.get_or_create(name=data['room'],
                                                    organization=organization)
-        self.save()
-        self.course.save()
 
     class Meta(MetaCore):
         db_table = app_label + '_' + 'conference'
index d9ccbe07816ee97b6744cd2ddbe273a9db60d989..7d0d101dc4d742d78c50b91c05ef7b655f631a91 100644 (file)
@@ -572,6 +572,7 @@ class ConferenceRecordView(FormView):
             if not conferences:
                 conference = Conference()
                 conference.from_json_dict(conf_dict)
+                conference.save()
 
                 for stream in conf_dict['streams']:
                     host = stream['host']