aboutsummaryrefslogtreecommitdiff
path: root/management/commands
diff options
context:
space:
mode:
authorAlban Gruin2017-09-04 21:43:40 +0200
committerAlban Gruin2017-09-04 21:43:40 +0200
commit8526c4588d88e98f59611771dbc0ca34c1b66d66 (patch)
treeaef674c0c07991540b02203c1318b634404d43c6 /management/commands
parent276158c7813cb75df3ea433d3b8543bdf5c7b7d3 (diff)
Rennomage de parent_group en parent.
Diffstat (limited to 'management/commands')
-rw-r--r--management/commands/_private.py4
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):