Skip to content

Commit

Permalink
Make the answer_type choice explicit for questions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvanrun committed May 24, 2024
1 parent 557283b commit 5eca1cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/grandchallenge/reader_studies/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ def __init__(self, *args, reader_study, **kwargs):
"hx-target": "#id_interface",
}
)
self.fields["answer_type"].choices = AnswerType.choices
self.fields["answer_type"].choices = [
*BLANK_CHOICE_DASH,
*AnswerType.choices,
]

self.helper = FormHelper()
self.helper.form_tag = True
Expand Down

0 comments on commit 5eca1cb

Please sign in to comment.