diff options
| author | Simon Charette <charettes@users.noreply.github.com> | 2017-12-08 10:59:49 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-08 10:59:49 -0500 |
| commit | b43acf22dfa59815a1f4db0558acd98816325f66 (patch) | |
| tree | 3176aa73aacc65fb5af2bd2dde4a45780f9e09b7 /django/db/models/sql/where.py | |
| parent | fff86cfa46d6c5da645f162488216b08eb60db8d (diff) | |
Refs #27849 -- Removed empty Q() hack in filtered Aggregate.as_sql().
This required allowing WhereNode to be provided as When(condition).
This was made possible by cf12257db23fa248c89a3da3f718aa01a50ca659.
Diffstat (limited to 'django/db/models/sql/where.py')
| -rw-r--r-- | django/db/models/sql/where.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py index 1635a686c2..d913abab2e 100644 --- a/django/db/models/sql/where.py +++ b/django/db/models/sql/where.py @@ -27,6 +27,7 @@ class WhereNode(tree.Node): """ default = AND resolved = False + conditional = True def split_having(self, negated=False): """ |
