Hi.
If I do
initial_queryset = models.Coupon.objects.all()
queryset = initial_queryset[page*50:page*50+50]
coupons = tables.CouponTable(queryset,
order_by=request.GET.get('sort'))
Then the template will throw a TypeError in line 174 of django_tables/
models.py:
self._length = self.table.data.count()
A fix I found is changing the above line for this:
self._length = len(self.table.data)
I hope this helps.
--
http://DjanSoft.com :: Agile Application Development with Python