aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-25 13:25:51 +0100
committerAlban Gruin2017-11-25 13:25:51 +0100
commitb99dbd566fba7f3c18d3832edeb8e019abcc8c87 (patch)
tree88696e113e3252f25364dc4cb524fc0f330cde16 /models.py
parent68248f075dc750d7de5c0d060721ecce8f988217 (diff)
Ne sélectionne plus les sous-groupes
Diffstat (limited to 'models.py')
-rw-r--r--models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models.py b/models.py
index 40406e3..40849c6 100644
--- a/models.py
+++ b/models.py
@@ -72,7 +72,7 @@ class Timetable(SlugModel):
class GroupManager(Manager):
def get_parents(self, group):
- groups_criteria = Q(subgroup="") | Q(subgroup__startswith=group.subgroup)
+ groups_criteria = Q(subgroup="")
if len(group.subgroup) != 0:
groups_criteria |= reduce(lambda x, y: x | y,