diff options
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |