mirror of
https://github.com/django/django.git
synced 2025-12-02 08:05:58 +00:00
Fixed #28860 -- Removed unnecessary len() calls.
This commit is contained in:
parent
3d94ee8500
commit
d2afa5eb23
33 changed files with 56 additions and 55 deletions
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue