Generate a sample supervisor

This commit is contained in:
2021-08-20 12:38:30 +01:00
parent af987c1ebb
commit 4d0d4f02aa
3 changed files with 13 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ class Trainee(Profile):
def is_supervisor(self):
# FIXME Efficiency
for level_qualification in self.levels.select_related('level').all():
if confirmed_on is not None and level_qualification.level.level >= TrainingLevel.SUPERVISOR:
if level_qualification.confirmed_on is not None and level_qualification.level.level >= TrainingLevel.SUPERVISOR:
return True
def get_records_of_depth(self, depth):