mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #34254 -- Fixed return value of Exists() with empty queryset.
Thanks Simon Charette for reviews.
This commit is contained in:
committed by
Mariusz Felisiak
parent
7eb5391b71
commit
246eb4836a
@@ -1546,6 +1546,7 @@ class Subquery(BaseExpression, Combinable):
|
||||
class Exists(Subquery):
|
||||
template = "EXISTS(%(subquery)s)"
|
||||
output_field = fields.BooleanField()
|
||||
empty_result_set_value = False
|
||||
|
||||
def __init__(self, queryset, **kwargs):
|
||||
super().__init__(queryset, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user