diff options
| author | Krzysztof Nazarewski <nazarewk@gmail.com> | 2017-07-05 13:00:10 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-11-18 19:33:52 -0500 |
| commit | 244cc401559e924355cf943b6b8e66ccf2f6da3a (patch) | |
| tree | 124c16b3fd1e844cb2925fc4fd0c76b7fde0584f /django/db/models/sql/constants.py | |
| parent | 3af305e8b8a89f4b0e5874cd601568ab8dcd7334 (diff) | |
Fixed #26184 -- Allowed using any lookups in ModelAdmin.search_fields.
Thanks Krzysztof Nazarewski for the initial patch.
Diffstat (limited to 'django/db/models/sql/constants.py')
| -rw-r--r-- | django/db/models/sql/constants.py | 10 |
1 files changed, 0 insertions, 10 deletions
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 |
