Browse files

Shoudl be timeelta now int

  • Loading branch information...
1 parent 98ab908 commit e15e5e718cd7c8f40aef856646100e0f07fb34b0 David Cramer committed Nov 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_histograms/utils.py
View
2 django_histograms/utils.py
@@ -100,7 +100,7 @@ def get_report(self):
elif self.days:
cutoff = datetime.datetime.now()-datetime.timedelta(days=self.days)
grouper = lambda x: None
- day_grouper = lambda x: (datetime.datetime.now()-x.day).days
+ day_grouper = lambda x: (datetime.datetime.now()-datetime.timedelta(days=x.day)).days
months[None] = ['Last %s Days' % (self.days), ([0] * self.days), 0]
qs = self.get_query_set().values(self.attname).annotate(

0 comments on commit e15e5e7

Please sign in to comment.