From: yomguy Date: Thu, 19 Jul 2012 20:53:20 +0000 (+0200) Subject: fix course type X-Git-Tag: 0.7.1~5^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=23f099734c62414f67c8f1537774ae732589e3e2;p=teleforma.git fix course type --- diff --git a/teleforma/management/commands/teleforma-import-conferences.py b/teleforma/management/commands/teleforma-import-conferences.py index 8d4056be..f044d8eb 100644 --- a/teleforma/management/commands/teleforma-import-conferences.py +++ b/teleforma/management/commands/teleforma-import-conferences.py @@ -75,7 +75,7 @@ class Command(BaseCommand): conference, c = Conference.objects.get_or_create(public_id=public_id) conference.course = Course.objects.get(code=course_id) - conference.course = Course.objects.get(name=course_type) + conference.course_type = CourseType.objects.get(name=course_type) conference.save() exist = False