diff options
| author | David Wobrock <david.wobrock@gmail.com> | 2021-09-29 00:00:50 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-29 20:23:29 +0200 |
| commit | dd1fa3a31b4680c0d3712e6ae122b878138580c7 (patch) | |
| tree | 10205352e74cd3708581c7c262d25840be6aa12a /django/db/models/sql/query.py | |
| parent | ad36a198a12df4dff65992191b3eb0a474e2daac (diff) | |
Fixed #33018 -- Fixed annotations with empty queryset.
Thanks Simon Charette for the review and implementation idea.
Diffstat (limited to 'django/db/models/sql/query.py')
| -rw-r--r-- | django/db/models/sql/query.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index f772f7048b..b02d19071b 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -143,6 +143,7 @@ class Query(BaseExpression): """A single SQL query.""" alias_prefix = 'T' + empty_result_set_value = None subq_aliases = frozenset([alias_prefix]) compiler = 'SQLCompiler' |
