From 97497b3ad1debda368ca146c29a5ec059e9dcc3a Mon Sep 17 00:00:00 2001 From: Mo8it Date: Thu, 29 Jul 2021 01:04:58 +0200 Subject: [PATCH] Done ProgramView --- advlabdb/modelViews.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/advlabdb/modelViews.py b/advlabdb/modelViews.py index 9596df8..c487dfc 100644 --- a/advlabdb/modelViews.py +++ b/advlabdb/modelViews.py @@ -625,8 +625,11 @@ class ExperimentMarkView(SecureModelView): class ProgramView(SecureModelView): + can_view_details = True + column_list = ["label"] - column_details_list = column_list + ["parts", "experiments", "groups"] + form_excluded_columns = ["parts", "experiments", "groups"] + column_details_list = column_list + form_excluded_columns admin.add_view(StudentView(Student, db.session))