From d047dafd234727fce8f78ea52b40f7c7e99b3ebe Mon Sep 17 00:00:00 2001 From: "Philippe O. Wagner" Date: Wed, 19 Apr 2017 11:30:12 +0200 Subject: [PATCH] Fixes #213 (MySQL syntax error) --- src/documents/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/managers.py b/src/documents/managers.py index e7b0751ca..f324137ef 100644 --- a/src/documents/managers.py +++ b/src/documents/managers.py @@ -50,7 +50,7 @@ class GroupConcat(models.Aggregate): def _get_template(self, separator): if self.engine == self.ENGINE_MYSQL: - return "%(function)s(%(expressions)s, SEPARATOR '{}')".format( + return "%(function)s(%(expressions)s SEPARATOR '{}')".format( separator) return "%(function)s(%(expressions)s, '{}')".format(separator)