aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-25 14:01:54 +0100
committerAlban Gruin2017-11-25 14:01:54 +0100
commitd9e0cba8c24978150e66b9ccd7ea67aa50a5f22d (patch)
tree3d447210d59606aa1ceaa2457f76590e979658d7 /models.py
parent7f146b306760e1a70e8e1a79d58fc967d05fe194 (diff)
Un groupe parent ne correspond plus à un groupe enfant
Modification des tests
Diffstat (limited to 'models.py')
-rw-r--r--models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/models.py b/models.py
index 9838377..bde27a7 100644
--- a/models.py
+++ b/models.py
@@ -101,8 +101,7 @@ class Group(models.Model):
def corresponds_to(self, timetable_id, mention, subgroup):
subgroup_corresponds = True
if self.subgroup is not None and subgroup is not None:
- subgroup_corresponds = subgroup.startswith(self.subgroup) or \
- self.subgroup.startswith(subgroup)
+ subgroup_corresponds = self.subgroup.startswith(subgroup)
return self.timetable.id == timetable_id and \
(self.mention.startswith(mention) or \