Commits

Viorel Stirbu  committed e54f628

fixed unused hit_params variable in admin code

  • Participants
  • Parent commits 2eface2

Comments (0)

Files changed (1)

File atexpc/atex_web/admin.py

 
     def queryset(self, request):
         qs = ProductQuerySet(Product)
-        hit_params = ('2012-09-30',)
+        hit_params = (Product.objects.one_month_ago(),)
         return (qs.extra(select=SortedDict([('image_count', qs.image_subquery()),
                                             ('hit_count', qs.hit_subquery())]),
-                         select_params=(Product.objects.one_month_ago(),)))
+                         select_params=hit_params))
 
     def hit_count(self, obj):
         return obj.hit_count