diff options
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/query.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index b691fc424b..48bbd7c851 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -217,7 +217,8 @@ class Query: @cached_property def base_table(self): - return list(self.alias_map)[0] if self.alias_map else None + for alias in self.alias_map: + return alias def __str__(self): """ |
