django-endless-pagination
django-endless-pagination copied to clipboard
Is there any way to get counter on endless pagination items?
I am using it to display a grid (div based) to display list of items with endless pagination. I tried to use forloop.counter however, every time it gets new set of items in queryset it starts the counter from 1 on the subsequent folds. Is there any way to get running counter?
This call inserts in the template context a pages variable {% get_pages %}
{{forloop.counter0|add:pages.current_start_index}}