From 14c5a5675338eaddda4dbc38c5bbebfd4093b1ca Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 20 Jan 2017 09:58:29 +0100 Subject: Oubli du type --- management/commands/timetables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'management/commands') diff --git a/management/commands/timetables.py b/management/commands/timetables.py index 99742ae..c67cb0b 100644 --- a/management/commands/timetables.py +++ b/management/commands/timetables.py @@ -39,7 +39,7 @@ class Command(BaseCommand): weeks = get_weeks(soup) for name, type_, groups, rooms, notes, begin, end in get_events(soup, weeks, week, timetable): - course = Course.objects.create(name=name, notes=notes, timetable=timetable, begin=begin, end=end) + course = Course.objects.create(name=name, type=type_, notes=notes, timetable=timetable, begin=begin, end=end) course.groups.add(*groups) if rooms is not None: -- cgit v1.2.1