diff --git a/django/db/models/sql/constants.py b/django/db/models/sql/constants.py index 612755a012..b9cf2c96fd 100644 --- a/django/db/models/sql/constants.py +++ b/django/db/models/sql/constants.py @@ -1,7 +1,7 @@ from collections import namedtuple import re -# Valid query types (a dictionary is used for speedy lookups). +# Valid query types (a set is used for speedy lookups). QUERY_TERMS = set([ 'exact', 'iexact', 'contains', 'icontains', 'gt', 'gte', 'lt', 'lte', 'in', 'startswith', 'istartswith', 'endswith', 'iendswith', 'range', 'year',