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
Add "Any" filter to ChoicesField #45
Comments
Nice -- thanks for the workaround. Agreed that it's a pretty common requirement for a search/filter form. |
Could you guys rework that into a pull request with docs and tests? Thx! |
@57even commented in #172. I'm closing that and pasting it here to keep everything in one place:
|
Related to #36 |
Closing this in favour of #261 |
Here's a Python3 compatible version of the original work-around by @cvk77 (see top of thread)
Changes: |
The ChoicesField currently doesn't provide an "Any" or "Unknown" filter entry, so as soon as a ChoiceField is added to a search form, the user has to always select an entry.
I currently workaround this by adding an empty filter in the Filter's constructor, but it would be great if there could be an easier way to achieve this:
The text was updated successfully, but these errors were encountered: