1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Deactivated queryFilter for ExperimentMarkView for students experiments history

This commit is contained in:
Mo 2021-08-01 01:03:27 +02:00
parent 08c86bca0b
commit cdeaa0852f

View file

@ -651,10 +651,13 @@ class ExperimentMarkView(SecureAdminModelView):
]
column_default_sort = [("oral_mark", False), ("protocol_mark", False)]
"""
# Deactivated for the experiments hisotry of a student.
def queryFilter(self):
return ExperimentMark.group_experiment.has(
GroupExperiment.semester_experiment.has(SemesterExperiment.semester == userActiveSemester())
)
"""
def checkForm(form):
if form.oral_mark and form.oral_mark.data == -1: