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:
parent
08c86bca0b
commit
cdeaa0852f
1 changed files with 3 additions and 0 deletions
|
@ -651,10 +651,13 @@ class ExperimentMarkView(SecureAdminModelView):
|
||||||
]
|
]
|
||||||
column_default_sort = [("oral_mark", False), ("protocol_mark", False)]
|
column_default_sort = [("oral_mark", False), ("protocol_mark", False)]
|
||||||
|
|
||||||
|
"""
|
||||||
|
# Deactivated for the experiments hisotry of a student.
|
||||||
def queryFilter(self):
|
def queryFilter(self):
|
||||||
return ExperimentMark.group_experiment.has(
|
return ExperimentMark.group_experiment.has(
|
||||||
GroupExperiment.semester_experiment.has(SemesterExperiment.semester == userActiveSemester())
|
GroupExperiment.semester_experiment.has(SemesterExperiment.semester == userActiveSemester())
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def checkForm(form):
|
def checkForm(form):
|
||||||
if form.oral_mark and form.oral_mark.data == -1:
|
if form.oral_mark and form.oral_mark.data == -1:
|
||||||
|
|
Loading…
Reference in a new issue