Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interface Bulk Edit requires interface "type"
2 participants