Permalink
Browse files

Fixes: filter() keywords must be strings.

  • Loading branch information...
1 parent 776c6c8 commit 2bff8e012338471820435a4f334e445d4a206836 @dnordberg dnordberg committed with Nov 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_histograms/utils.py
@@ -104,7 +104,7 @@ def get_report(self):
qs = self.get_query_set().values(self.attname).annotate(
num=Count("pk")
- ).filter(**{"%s__gt" % self.attname: cutoff})
+ ).filter(**{"%s__gt" % str(self.attname): cutoff})
for data in qs.iterator():
idx = grouper(data[self.attname])

0 comments on commit 2bff8e0

Please sign in to comment.