diff options
author | Alban Gruin | 2017-11-25 14:01:54 +0100 |
---|---|---|
committer | Alban Gruin | 2017-11-25 14:01:54 +0100 |
commit | d9e0cba8c24978150e66b9ccd7ea67aa50a5f22d (patch) | |
tree | 3d447210d59606aa1ceaa2457f76590e979658d7 /models.py | |
parent | 7f146b306760e1a70e8e1a79d58fc967d05fe194 (diff) |
Un groupe parent ne correspond plus à un groupe enfant
Modification des tests
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 \ |