diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2012-04-29 22:18:30 -0400 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2012-04-29 22:18:30 -0400 |
| commit | d5a277ba4d608284991428fc3f7d6e0dbe6f8300 (patch) | |
| tree | 68b6ac45a805a5f47f4f234cd892840f8b179d61 /django/db/models | |
| parent | 6ff118cdb9bb5904b8ce3021f52c4450fead49f5 (diff) | |
Switch a datastructure internal to the ORM to be a set, instead of a dictionary.
Diffstat (limited to 'django/db/models')
| -rw-r--r-- | django/db/models/sql/constants.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/sql/constants.py b/django/db/models/sql/constants.py index b5fd048799..612755a012 100644 --- a/django/db/models/sql/constants.py +++ b/django/db/models/sql/constants.py @@ -2,11 +2,11 @@ from collections import namedtuple import re # Valid query types (a dictionary is used for speedy lookups). -QUERY_TERMS = dict([(x, None) for x in ( +QUERY_TERMS = set([ 'exact', 'iexact', 'contains', 'icontains', 'gt', 'gte', 'lt', 'lte', 'in', 'startswith', 'istartswith', 'endswith', 'iendswith', 'range', 'year', 'month', 'day', 'week_day', 'isnull', 'search', 'regex', 'iregex', -)]) +]) # Size of each "chunk" for get_iterator calls. # Larger values are slightly faster at the expense of more storage space. |
