From 745d8d0004af56873bf18ed36a68794f738ee985 Mon Sep 17 00:00:00 2001 From: Shtarev Date: Wed, 3 Jun 2015 09:04:28 +0300 Subject: [PATCH] added comment --- rest_framework/filters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework/filters.py b/rest_framework/filters.py index 39de22fa2..ff0b8e653 100644 --- a/rest_framework/filters.py +++ b/rest_framework/filters.py @@ -108,6 +108,7 @@ class SearchFilter(BaseFilterBackend): and_queries.append(reduce(operator.or_, or_queries)) if and_queries: + # According to Oracle DB limits there is no capability to make a DISTINT on *LOB if settings.DATABASES[queryset.db]["ENGINE"] == "django.db.backends.oracle": pk_list = queryset.filter(reduce(operator.and_, and_queries)).values_list('pk', flat=True) return queryset.filter(pk__in=frozenset(pk_list))