Skip to content

Commit

Permalink
Only set CheckboxInputField for BooleanFields
Browse files Browse the repository at this point in the history
  • Loading branch information
gherceg committed Jan 22, 2025
1 parent 5fa269d commit 9ca6192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corehq/apps/domain/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ def __init__(self, *args, **kwargs):
excluded_fields.append('secure_sessions_timeout')

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

fields = [hqcrispy.CheckboxField(field_name)
Expand Down

0 comments on commit 9ca6192

Please sign in to comment.