mirror of
https://github.com/django/django.git
synced 2025-08-25 04:54:45 +00:00
Fixed #30099 -- Fixed invalid SQL when filtering a Subquery by an aggregate.
This commit is contained in:
parent
87bf35abd3
commit
f021c110d0
3 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue