django-rest-framework-filters
django-rest-framework-filters copied to clipboard
Better filtering for Django REST Framework
Moving https://github.com/philipn/django-rest-framework-filters/issues/312#issuecomment-534751686 to a new issue: > Hey, sorry if this is a little off topic but I am looking at using the complex backend and I am a little...
Automatic negation should be made into its own mixin class, separate from the related filtering behavior. Note: It may not be possible to do this, given the issues regarding related...
- Add minimal "guide" section that demonstrates the full setup for using this package. - Changes to FilterSet related filtering - How the above enables related annotation support - Added...
The blurb should be updated with the new backend class, `RestFrameworkFilterBackend`. See: https://github.com/encode/django-rest-framework/pull/6093
This builds off of the thoughts in #54 and #99, but there may be some potential confusion when it comes to related filter negation. Using the Blog/Entry example in #99,...
Hi, Currently [tests fail in Debian](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052818) with Django 4.2. ```python ... ... > > from django.conf.urls import include, url > E ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py) ......
# My FilterSet ``` class UserFilter(filters.FilterSet): class Meta: model = User fields = {'id': ['exact', 'in',]} ``` # Evn python 3.7 django 2.1.1 django-filter 2.1.0 djangorestframework 3.8.2 djangorestframework-filters 1.0.0.dev2 #...
``` class MyModel(models.Model): region = IntegerRangeField class MyModelFilter(filters.FilterSet): class Meta: model = MyModel fields = "__all__" filter_overrides = { IntegerRangeField: {"filter_class": filters.NumericRangeFilter} } MyModelFilter({"region_min": 50, "region_max": 100}, queryset=MyModel.objects.all()).qs ``` This...