mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Removed default for program in ExperimentView
This commit is contained in:
parent
58d1ec73b5
commit
189998c7d3
1 changed files with 8 additions and 0 deletions
|
@ -359,6 +359,9 @@ class GroupView(SecureModelView):
|
|||
|
||||
|
||||
class ExperimentView(SecureModelView):
|
||||
def programQueryFactory():
|
||||
return Program.query
|
||||
|
||||
can_view_details = True
|
||||
|
||||
column_filters = ["active"]
|
||||
|
@ -380,6 +383,11 @@ class ExperimentView(SecureModelView):
|
|||
form_columns = column_details_list
|
||||
|
||||
form_args = {"wiki_link": {"validators": [URL()]}}
|
||||
form_extra_fields = {
|
||||
"program": QuerySelectField(
|
||||
"Program", query_factory=programQueryFactory, validators=[DataRequired()], allow_blank=True, blank_text="-"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
def assistantQueryFactory():
|
||||
|
|
Loading…
Reference in a new issue