Skip to content

Conversation

@DanSheps
Copy link
Member

Fixes: #19275 - Make type choice for interfaces non-required

  • Alter form_from_model to also mark the widget itself as non-required

@DanSheps DanSheps self-assigned this Apr 22, 2025
@DanSheps DanSheps marked this pull request as ready for review April 23, 2025 13:16
@DanSheps DanSheps requested review from a team and jeremystretch and removed request for a team April 23, 2025 13:17
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

I coincidentally just addressed this in #19283. Is there any reason not to just set field.widget.is_required = False?

@DanSheps
Copy link
Member Author

I coincidentally just addressed this in #19283. Is there any reason not to just set field.widget.is_required = False?

Nope, I was just being extra cautious to make sure that there wasn't any issue with perhaps a null widget or anything.

@DanSheps DanSheps closed this Apr 23, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2025
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.

Interface Bulk Edit requires interface "type"

3 participants