Skip to content

Conversation

@jeremystretch
Copy link
Member

Fixes: #13064

  • Set FORM_RENDERER to TemplatesSetting, which allows overriding Django's stock form widget HTML templates
  • Embed a hidden form element above each checkbox widget to ensure an empty field value is sent for unchecked checkboxes as part of the form data

},
]

# This allows us to override Django's stock form widget templates
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about adding a comment for why this here as it's not obvious.

@jeremystretch jeremystretch merged commit a46255d into develop Oct 4, 2023
@jeremystretch jeremystretch deleted the 13064-htmx-checkboxes branch October 4, 2023 15:58
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Enabled" flag is reset during editing of an interface if "802.1Q Mode" is changed

3 participants