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.
More Related Contents:
- Using only the DB part of Django
- Use Django ORM as standalone [duplicate]
- What is choice_set in this Django app tutorial?
- How do you join two tables on a foreign key field using django ORM?
- How do i cast char to integer while querying in django ORM?
- How to make an Inner Join in django?
- How to store a dictionary on a Django Model?
- Pillow installed, but getting “no module named pillow”
- How to query as GROUP BY in django?
- How do I filter query objects by date range in Django?
- DatabaseError: current transaction is aborted, commands ignored until end of transaction block?
- How do I clone a Django model instance object and save it to the database?
- Django datetime issues (default=datetime.now())
- Django What is reverse relationship?
- Running “unique” tasks with celery
- URL-parameters and logic in Django class-based views (TemplateView)
- ValueError at /image/ Tensor Tensor(“activation_5/Softmax:0”, shape=(?, 4), dtype=float32) is not an element of this graph
- Django: Display Choice Value
- Django – taking values from POST request
- Django REST: Uploading and serializing multiple images
- Create Django model or update if exists
- Get request body as string in Django
- Overriding the save method in Django ModelForm
- Django class-based view: How do I pass additional parameters to the as_view method?
- “no such table” exception
- Case insensitive unique model fields in Django?
- Proper way to consume data from RESTFUL API in django
- django excel xlwt
- Django Multiple Databases – relation does not exist; LINE 1: SELECT COUNT(*) AS “__count” FROM
- How do I change the range of the x-axis with datetime?