summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/db/models/expressions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
index d433d6b8a0..ccb9636503 100644
--- a/django/db/models/expressions.py
+++ b/django/db/models/expressions.py
@@ -994,6 +994,7 @@ class Subquery(Expression):
query which will be resolved when it is applied to that query.
"""
template = '(%(subquery)s)'
+ contains_aggregate = False
def __init__(self, queryset, output_field=None, **extra):
self.queryset = queryset