Skip to content

Commit

Permalink
Merge pull request #35655 from dimagi/gh/project-settings/b5-bug
Browse files Browse the repository at this point in the history
Only set CheckboxInputField for BooleanFields
  • Loading branch information
gherceg authored Jan 22, 2025
2 parents a83cc4a + c6a80bd commit f3826d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion corehq/apps/domain/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,8 @@ def __init__(self, *args, **kwargs):
excluded_fields.append('secure_sessions_timeout')

for field in self.fields.values():
if not isinstance(field.widget, BootstrapCheckboxInput):
has_custom_input = isinstance(field.widget, BootstrapCheckboxInput)
if isinstance(field, BooleanField) and not has_custom_input:
field.widget = BootstrapCheckboxInput()

fields = [hqcrispy.CheckboxField(field_name)
Expand Down

0 comments on commit f3826d4

Please sign in to comment.