Better filtering for Django REST Framework
This is a post release that set django-filter
compatibility to 1.x
.
This is a maintenance release that fixes compatibility with django-filter
.
This is a maintenance release that fixes the following bugs:
This release primarily adds compatibility with django-filter
1.0 (more details
in #144), and is an intermediate step to overhauling the behavior of filters
that span relationships.
As RelatedFilter
is a subclass of ModelChoiceFilter
, you may take advantage
of the callable
behavior for the queryset
argument. The queryset
is now a
required argument, which is a forwards-incompatible change. You can provide the
model's default queryset to maintain the current behavior, or a callable, which
will allow you to filter the queryset by the request's properties.
RelatedFilter.queryset
a required argumentThis release is tied to the 0.15.0 update of django-filter, and is in preparation of a (near) simultaneous 1.0 release. All current deprecations will be removed in the next release.
lookups
argument to RelatedFilter
MethodFilter
for new Filter.method
argument