Added an informational log message for consumer start

This commit is contained in:
Daniel Quinn
2016-03-06 17:26:07 +00:00
parent 2fba41ad75
commit 3b278c3a24
3 changed files with 25 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ from django.db import models
from django.db.models.aggregates import Max
class Concat(models.Aggregate):
class GroupConcat(models.Aggregate):
"""
Theoretically, this should work in Sqlite, PostgreSQL, and MySQL, but I've
only ever tested it in Sqlite.
@@ -60,7 +60,7 @@ class LogQuerySet(models.query.QuerySet):
def by_group(self):
return self.values("group").annotate(
time=Max("modified"),
messages=Concat("message"),
messages=GroupConcat("message"),
).order_by("-time")