Open hongfanmeng opened 1 year ago
To be precise, I want to automatically generate suffix of all lookup with or without exclude
I really want this too, https://github.com/carltongibson/django-filter/issues/978 and see this discussion about it, https://github.com/carltongibson/django-filter/discussions/1484
Hello, I have recently started used django-fliters and also stumbled upon this.
I have written some minimal mixins which enable this behavior on django-filters (tested on DRF, not sure if compatible at all with forms). You can find them here https://github.com/WhiteSage/django-filter-autotools .
I invested sometime to analysed and do a extension to have automagically exclude on any lookup. Posted the snnipets here
is it possible to auto generate [fieldname]__not_\[lookup] filter ?