Fix EDE pe/ps class detection

This commit is contained in:
alazo 2018-11-16 09:17:20 +01:00 committed by Claude Paroz
parent e384cc6fa8
commit 32398be8c3
2 changed files with 16 additions and 2 deletions

View file

@ -81,10 +81,10 @@ class Klass(models.Model):
return self.name
def is_Ede_pe(self):
return 'EDEpe' in self.name
return 'EDE' in self.name and 'pe' in self.name
def is_Ede_ps(self):
return 'EDEps' in self.name
return 'EDE' in self.name and 'ps' in self.name
class Teacher(models.Model):