Using forloop counter in django pagination

| 0 Comments | 0 TrackBacks

In order to use forloop.counter with pagination use:

{% for object in objectlist %} {{ pageobj.start_index|add:forloop.counter0 }} {% endfor %}

No TrackBacks

TrackBack URL: http://www.sci-blog.com/mt/mt-tb.cgi/146

Leave a comment

Recent Entries

Particle filter and Rao Blackwellised particle filter
View imageAny improvements?Detection errors----------------------------- PF      = 0RBPF    = 0  Execution time  (seconds)------------------------- PF      = 6.4465RBPF    = 11.6923…
Pingfire 1.0.4 compatible with firefox 3.6
Updated version of pingfire extension. This is my fork with bit.ly supportScreenshot View imagepingfire.xpi…
Updated pingfire extension
Pingfire firefox extension compatible with 3.6.2 firefox. Usual disclaimer: I do it for my own use so no guarantee it…