Skip to content

Commit 14219c4

Browse files
author
Javier Palacios
committed
BUGFIX: tie to CharField if separator given
1 parent 9c472ce commit 14219c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/django_mysql/models/aggregates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def __init__(
2525
):
2626

2727
if "output_field" not in extra:
28-
if distinct:
28+
if separator:
29+
extra["output_field"] = CharField()
30+
elif distinct:
2931
extra['output_field'] = SetCharField(CharField())
3032
else:
3133
extra['output_field'] = ListCharField(CharField())

0 commit comments

Comments
 (0)