mirror of
https://github.com/django/django.git
synced 2025-07-28 23:54:02 +00:00
Refs #10929 -- Fixed aggregates crash when passing strings as defaults.
Previously strings were interpreted as F() expressions and default crashed with AttributeError: 'F' object has no attribute 'empty_result_set_value'
This commit is contained in:
parent
85b52d22fd
commit
0db8bf3d60
2 changed files with 4 additions and 1 deletions
|
@ -125,6 +125,7 @@ class TestGeneralAggregate(PostgreSQLTestCase):
|
|||
(BoolAnd("boolean_field", default=False), False),
|
||||
(BoolOr("boolean_field", default=False), False),
|
||||
(JSONBAgg("integer_field", default=Value('["<empty>"]')), ["<empty>"]),
|
||||
(StringAgg("char_field", delimiter=";", default="<empty>"), "<empty>"),
|
||||
(
|
||||
StringAgg("char_field", delimiter=";", default=Value("<empty>")),
|
||||
"<empty>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue