diff options
author | Alban Gruin | 2017-09-04 21:43:40 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-04 21:43:40 +0200 |
commit | 8526c4588d88e98f59611771dbc0ca34c1b66d66 (patch) | |
tree | aef674c0c07991540b02203c1318b634404d43c6 /management/commands | |
parent | 276158c7813cb75df3ea433d3b8543bdf5c7b7d3 (diff) |
Rennomage de parent_group en parent.
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): |