Skip to content

Commit

Permalink
rm redundant codes
Browse files Browse the repository at this point in the history
  • Loading branch information
nanchenchen committed Mar 5, 2015
1 parent 83eb385 commit ce85372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msgvis/apps/dimensions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import datetime, timedelta

from django.db import models
from django.db.models import Q, Count
from django.db.models import Q
from django.conf import settings
from django.utils import dateformat, timezone

Expand Down Expand Up @@ -147,7 +147,7 @@ def get_domain(self, queryset, **kwargs):
queryset = self.group_by(queryset, grouping_key='value')

# Count the messages in each group
queryset = queryset.annotate(count=Count('id'))
queryset = queryset.annotate(count=models.Count('id'))

queryset = queryset.order_by('-count')

Expand Down

0 comments on commit ce85372

Please sign in to comment.