Nope. Django filters operate at the database level , generating SQL. To filter based on Python properties, you have to load the object into Python to evaluate the property–and at that point, you’ve already done all the work to load it.
Read moreWhat does Django-filter do?
Django-filter is a generic, reusable application to alleviate writing some of the more mundane bits of view code. Specifically, it allows users to filter down a queryset based on a model’s fields, displaying the form to let them do this .
Read moreWhat does Django-filter return?
Filtering records using the filter() method Django provides a filter() method which returns a subset of data . It accepts field names as keyword arguments and returns a QuerySet object. As database has only one record where name is ‘tom’ , the QuerySet object contains only a single record.
Read moreWhat is API in Django?
An API (Application Programming Interface) is a software that allows two applications to talk to each other . In this tutorial, We will explore different ways to create a Django Rest Framework (DFR) API. We will build Django REST application with Django 2. X.X that allows users to create, edit, and delete API.
Read moreHow do I run Django API?
How to Build an API in Python (with Django)
Read more