Category "django-filter"

Django query annotate after filter doesn't work correctly

I have two models that are related using a m2m relationship through an intermediate model: class Chat(models.Model): participants = models.ManyToManyField(s

I need to apply the values_list() function to queryset after filtering

Following is my View Class: from apps.embla_services.filters import RentPostFilters from django_filters import rest_framework as filters from apps.embla_service

I need to apply the values_list() function to queryset after filtering

Following is my View Class: from apps.embla_services.filters import RentPostFilters from django_filters import rest_framework as filters from apps.embla_service

django-filter list of links

I'm using django-filter's ChoiceFilter to generate a dropdown to filter results and it works great. However a dropdown is not what I have in mind for the design

django filter for NOT IN as lookup_expr

We can make the django filter with "in" expression sending comma separated string. Such as import django_filters class NumberInFilter(django_filters.BaseInFilt

django-filter checkbox ajax

I am trying to implement django-filters + ajax(jquery) after sending the request, the selected checkboxes "disappear" I have little experience yet, tell me how