Skip to content
This repository
Browse code

Shoudl be timeelta now int

  • Loading branch information...
commit e15e5e718cd7c8f40aef856646100e0f07fb34b0 1 parent 98ab908
David Cramer authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  django_histograms/utils.py
2  django_histograms/utils.py
@@ -100,7 +100,7 @@ def get_report(self):
100 100 elif self.days:
101 101 cutoff = datetime.datetime.now()-datetime.timedelta(days=self.days)
102 102 grouper = lambda x: None
103   - day_grouper = lambda x: (datetime.datetime.now()-x.day).days
  103 + day_grouper = lambda x: (datetime.datetime.now()-datetime.timedelta(days=x.day)).days
104 104 months[None] = ['Last %s Days' % (self.days), ([0] * self.days), 0]
105 105
106 106 qs = self.get_query_set().values(self.attname).annotate(

0 comments on commit e15e5e7

Please sign in to comment.
Something went wrong with that request. Please try again.