]> git.parisson.com Git - teleforma.git/commitdiff
fix course type
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:53:20 +0000 (22:53 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:53:20 +0000 (22:53 +0200)
teleforma/management/commands/teleforma-import-conferences.py

index 8d4056be317d3cac0e18f43c1585f1c71f8ff5b6..f044d8ebbf09b3c80a68a9aeb3701b5d30f96bf5 100644 (file)
@@ -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