Skip to content
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

Closes: #17575 - Add NullableMultipleChoiceFilter and filter form UI to match empty string #17576

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

bctiemann
Copy link
Contributor

Closes: #17575

Adds a NullableMultipleChoiceFilter class (patterned on the existing NullableCharFieldFilter) which can be used in a multiple-choice FilterForm input to add the "(unset)" ('') value to a list of acceptable choices in the filter, evaluated in an OR fashion in a single query.

@bctiemann
Copy link
Contributor Author

See #17481 which this is adapted from. Also #17574 should be merged first.

@bctiemann bctiemann self-assigned this Sep 23, 2024
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.

Add ability to filter for empty string values in an "OR" fashion
1 participant