aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-24 20:02:21 +0100
committerAlban Gruin2017-11-24 20:02:21 +0100
commitb28630da06a6c1286d5cd34d6437d8dd19d6f298 (patch)
tree9e9fc9ff12fb11b43a462592bb844d977f3be209 /models.py
parent74f7317251ec068e89ee02d386b902d53f366840 (diff)
Ajout de nouveaux tests pour ces nouveaux cas
Diffstat (limited to 'models.py')
-rw-r--r--models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/models.py b/models.py
index 4c3f3c3..14270cf 100644
--- a/models.py
+++ b/models.py
@@ -116,7 +116,8 @@ class Group(models.Model):
self.subgroup.startswith(subgroup)
return self.timetable.id == timetable_id and \
- self.mention.startswith(mention) and \
+ (self.mention.startswith(mention) or \
+ mention.startswith(self.mention)) and \
subgroup_corresponds
@property