From: Guillaume Pellerin Date: Wed, 17 Jul 2013 15:45:32 +0000 (+0200) Subject: try to fix conf create X-Git-Tag: 1.1~548 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d2bb485e359318215f19120956044a2a0a4f4d1c;p=teleforma.git try to fix conf create --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 05665902..ea0a09b8 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -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' diff --git a/teleforma/views/core.py b/teleforma/views/core.py index d9ccbe07..7d0d101d 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -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']