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)