diff options
Diffstat (limited to 'management/commands')
-rw-r--r-- | management/commands/_private.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/management/commands/_private.py b/management/commands/_private.py index dec13cd..c31eb34 100644 --- a/management/commands/_private.py +++ b/management/commands/_private.py @@ -54,12 +54,12 @@ def consolidate_group(group): break if "subgroup" in group_content: - group.parent_group = Group.objects.filter(**group_content).first() + group.parent = Group.objects.filter(**group_content).first() group.save() def consolidate_groups(groups): for group in groups: - if group.parent_group == None: + if group.parent == None: consolidate_group(group) def delete_courses_in_week(timetable, year, week): |