We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a54f035 commit 78fdbedCopy full SHA for 78fdbed
src/reactpy_django/forms/utils.py
@@ -14,7 +14,7 @@ def convert_multiple_choice_fields(data: dict[str, Any], initialized_form: Form
14
15
# Convert multiple choice field text into a list of values
16
for choice_field_name in multi_choice_fields:
17
- if choice_field_name in data and not isinstance(data[choice_field_name], list):
+ if not isinstance(data.get(choice_field_name), list):
18
data[choice_field_name] = [data[choice_field_name]]
19
20
0 commit comments