- Added plain objects filtering support. More in docs and GitHub issue #8.
- Added CallableFilter which allows to implement custom filters.
- Normalizing to DRF's
ValidationError
when usingStrictMode.Fail
since filterset raises Django'sValidationError
which caused 500 status code. - Fixes
ModelFilterSet
automatic introspection to ignoreGenericForeignKey
since they dont have form fields associated with them. See #20. - Releasing with wheels.
Added SQLAlchemy support.
FilterSet
instances have much more useful__repr__
which shows all filters at a glance. For example:>>> PlaceFilterSet() PlaceFilterSet() address = Filter(form_field=CharField, lookups=ALL, default_lookup="exact", is_default=False) id = Filter(form_field=IntegerField, lookups=ALL, default_lookup="exact", is_default=True) name = Filter(form_field=CharField, lookups=ALL, default_lookup="exact", is_default=False) restaurant = RestaurantFilterSet() serves_hot_dogs = Filter(form_field=BooleanField, lookups=ALL, default_lookup="exact", is_default=False) serves_pizza = Filter(form_field=BooleanField, lookups=ALL, default_lookup="exact", is_default=False) waiter = WaiterFilterSet() id = Filter(form_field=IntegerField, lookups=ALL, default_lookup="exact", is_default=True) name = Filter(form_field=CharField, lookups=ALL, default_lookup="exact", is_default=False)
- Fixed installation issue where not all subpackages were installed.
- First release on PyPI.