Fix EDE pe/ps class detection
This commit is contained in:
parent
e384cc6fa8
commit
32398be8c3
2 changed files with 16 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue