I use django-pagination to split the list of objects. It works flawlessly. I want to specify a number for each object on the page, and for this I use {{forloop.counter}} , but the problem is that it starts counting the object with 1 on each page. I wanted to show the actual number of objects.
Let's say if I am breaking the pages into 10 objects per page, then I want the number of objects to be 11 for the first object on page 2. I tried to write a template filter for this, but somehow I can not send both request.get.page and {{forloop.counter}} to my filter function. I can not do it.
Any help for referrals would be appreciated.
django django-templates
Sachin
source share