Top "Django-filter" questions

For questions concerning the use of the 3rd-party library django-filter.

Django-filter multiple URL parameters

I am using Django-filter app to construct search on my website. This is the code: class PropertyFilter(django_filters.FilterSet): …

python django django-filter
How to filter gte,lte date on datetime field?

I'm trying to figure out how to filter QuerySet using date extracted from datetime. I use Django-filter and I can't …

django postgresql datetime django-filter django-postgresql
How to modify Django admin filter's title

I have a filter (one of the defaults and not custom) Is it possible just to change the title of …

django django-admin django-filter
How to use ModelMultipleChoiceFilter?

I have been trying to get a ModelMultipleChoiceFilter to work for hours and have read both the DRF and Django …

python django django-rest-framework django-filter
Django-filter | Boolean fields

I'm using django-filter package and I have many boolean fields. Is there a way to filter only when field is …

python django django-filter
Meta.fields contains a field that isn't defined on this FilterSet: ****

I am using Django Filters package . I define my filter in following way in the view class UnitFilter(django_filters.…

django django-models django-filter
How do I calculate the time difference in a Django template

I have a model with two TimeFields. I want to show the time difference in a template (ie, 27 minutes). I …

django django-templates django-filter
Django "update_or_create" API: how to filter objects by created or updated?

So, I'm using the Django update_or_create API to build my form data. It works fine...but, once built, …

python django django-queryset django-filter
Django REST - SearchFilter not filtering

I am using Django 1.10 and django-rest-framework 3.5.3. I would like to have a generic search query: search for a value on …

python django django-rest-framework django-filter
django filter on APIView

I have a APIView class for showing all the rents and posting and delete etc. Now i want search feature …

python django django-rest-framework django-filter