From 244cc401559e924355cf943b6b8e66ccf2f6da3a Mon Sep 17 00:00:00 2001 From: Krzysztof Nazarewski Date: Wed, 5 Jul 2017 13:00:10 +0200 Subject: Fixed #26184 -- Allowed using any lookups in ModelAdmin.search_fields. Thanks Krzysztof Nazarewski for the initial patch. --- django/db/models/sql/constants.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'django/db/models/sql') diff --git a/django/db/models/sql/constants.py b/django/db/models/sql/constants.py index 57857796b8..28f4242a7a 100644 --- a/django/db/models/sql/constants.py +++ b/django/db/models/sql/constants.py @@ -4,16 +4,6 @@ Constants specific to the SQL storage portion of the ORM. import re -# Valid query types (a set is used for speedy lookups). These are (currently) -# considered SQL-specific; other storage systems may choose to use different -# lookup types. -QUERY_TERMS = { - 'exact', 'iexact', 'contains', 'icontains', 'gt', 'gte', 'lt', 'lte', 'in', - 'startswith', 'istartswith', 'endswith', 'iendswith', 'range', 'year', - 'month', 'day', 'week_day', 'hour', 'minute', 'second', 'isnull', 'search', - 'regex', 'iregex', -} - # Size of each "chunk" for get_iterator calls. # Larger values are slightly faster at the expense of more storage space. GET_ITERATOR_CHUNK_SIZE = 100 -- cgit v1.3