diff options
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index e7456de037..ab5c41ed4f 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1061,7 +1061,7 @@ class Query: and get_transform(). """ # __exact is the default lookup if one isn't given. - if len(lookups) == 0: + if not lookups: lookups = ['exact'] for name in lookups[:-1]: |
