You can use `forloop.counter` with `sum` filter. Or use `ol` html tag with proper `start` attribute.
On Tue, Mar 17, 2009 at 7:47 PM, Jesse <adles...@gmail.com> wrote: > > Hello, > > I've finally gotten pagination to work. Now I would like to add a > sequential number to the beginning of each record in the output. In > previous languages I used something like count=count+1 and then placed > count at the beginning of each record output in the template. How is > a record count created in django that can be displayed at the > beginning of each record in the template? > > If I use <ol></ol> the count starts over again for each page under > pagination. I need to be able to label records 1 - 100 across several > pages. > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---