Replies: 1 comment 1 reply
-
A |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to use AllValuesFilter on my CharFields, but i wanna ignore empty values but changing
null_value
did not help.In my oponion It's happening here:
django-filter/django_filters/filters.py
Line 484 in 79b4ea7
so for my purpose i change this line to
self.extra['choices'] = [(o, o) for o in qs if o]
For more komplexity I maybe add
allow_blank
or something similar for this filter and make it optionalBeta Was this translation helpful? Give feedback.
All reactions