From b3b243f39fc90e7f4def5740436ccda03587a7be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henryk=20Pl=C3=B6tz?= Date: Fri, 9 Aug 2024 14:09:13 +0200 Subject: [PATCH] Change dummy queryset qualifier from "all" to "none" --- django_filters/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_filters/utils.py b/django_filters/utils.py index 9b3f8728..fea4b590 100644 --- a/django_filters/utils.py +++ b/django_filters/utils.py @@ -201,7 +201,7 @@ def resolve_field(model_field, lookup_expr): https://docs.djangoproject.com/en/stable/ref/models/lookups/ """ - query = model_field.model._default_manager.all().query + query = model_field.model._default_manager.none().query lhs = Expression(model_field) lookups = lookup_expr.split(LOOKUP_SEP)