mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-05 01:51:28 -04:00
WTForms now renders the `required` attribute if there is a validator such as `DataRequired`. This was flagged in an accessibility audit as being unnecessary since it doesn't conform to the Design System recommendations, which state that "all form fields are considered mandatory when navigating a government service unless otherwise denoted by the word ‘(optional)’." This uses the approach here https://github.com/wtforms/wtforms/pull/361 to overwrite the `render_field` method.