From: yomguy Date: Wed, 25 Jul 2012 03:29:54 +0000 (+0200) Subject: fix import X-Git-Tag: 0.8.2^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e102c845e44bf45e1e7beeb38b94fb4d7061e393;p=teleforma.git fix import --- diff --git a/teleforma/management/commands/teleforma-import-conferences.py b/teleforma/management/commands/teleforma-import-conferences.py index 5cb6c6a2..30233d1d 100644 --- a/teleforma/management/commands/teleforma-import-conferences.py +++ b/teleforma/management/commands/teleforma-import-conferences.py @@ -74,9 +74,6 @@ class Command(BaseCommand): organization=organization) if Conference.objects.filter(public_id=public_id): conference = Conference.objects.get(public_id=public_id) - conference.course = Course.objects.get(code=course_id) - conference.course_type = CourseType.objects.get(name=course_type) - conference.save() exist = False medias = conference.media.all() @@ -134,6 +131,7 @@ class Command(BaseCommand): media.type = ext media.set_mime_type() media.save() + conference.save() logger.logger.info(path) i += 1