diff --git a/advlabdb/models.py b/advlabdb/models.py index f091549..b9f9095 100644 --- a/advlabdb/models.py +++ b/advlabdb/models.py @@ -520,7 +520,7 @@ class ExperimentMark(db.Model): raise DataBaseException("The group of the part student does not have the given group experiment!") def __init__(self, part_student, group_experiment): - ExperimentMark(part_student, group_experiment) + ExperimentMark.check(part_student, group_experiment) super().__init__(part_student=part_student, group_experiment=group_experiment)