From 15666258d5ff873e58cc9661a4e4d950352a8df6 Mon Sep 17 00:00:00 2001 From: Andrew Melton Date: Thu, 27 Feb 2014 16:04:36 -0500 Subject: [PATCH] Convert annotations to list --- stacktach/dbapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacktach/dbapi.py b/stacktach/dbapi.py index 6bb26b5..a593d78 100644 --- a/stacktach/dbapi.py +++ b/stacktach/dbapi.py @@ -239,7 +239,7 @@ def _get_exist_stats(request, service): query = klass.objects.filter(**filters) values = query.values('status', 'send_status') stats = values.annotate(event_count=Count('send_status')) - return stats + return list(stats) @api_call def exists_send_status(request, message_id):