Skip to content

Commit

Permalink
Fixes: filter() keywords must be strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnordberg authored and alex committed Nov 20, 2009
1 parent 776c6c8 commit 2bff8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_histograms/utils.py
Expand Up @@ -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])
Expand Down

0 comments on commit 2bff8e0

Please sign in to comment.