Skip to content

Fixes #15971: Preserve 'none' selection in filter form fields #19310

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeremystretch
Copy link
Member

Fixes: #15971

If null_option set on the field, convert its choices attribute from ModelChoiceIterator to a list and insert the null option. This allows it to be displayed as a selected choice when the widget is rendered.

@jeremystretch jeremystretch requested review from a team and bctiemann and removed request for a team April 24, 2025 15:44
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.

"None" filter selection gets lost on adjustment of filter
1 participant