Skip to content

Commit

Permalink
Ensure were grouping correctly with annotate on count results
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Mar 24, 2012
1 parent 56e1dba commit 51478e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sentry/templatetags/sentry_admin_helpers.py
Expand Up @@ -19,7 +19,7 @@ def with_event_counts(project_list):
results = dict(ProjectCountByMinute.objects.filter(
project__in=project_list,
date__gte=datetime.datetime.now() - datetime.timedelta(days=30),
).annotate(
).values_list('project').annotate(
total_events=Sum('times_seen'),
).values_list('project', 'total_events'))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -50,7 +50,7 @@

setup(
name='sentry',
version='3.6.2',
version='3.6.3',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/sentry',
Expand Down

0 comments on commit 51478e3

Please sign in to comment.