for who it may concern...
is far as I know there is no built-in solution for (continuous)
numbering rows in paginated tables, so here's mine, maybe it's helpful
for someone.
paginate_by = 20
paginator = ObjectPaginator(......, paginate_by)
page = int(request.GET.get('page', 0))
row_number_offset = (page * paginate_by) + 1
return render_to_response('template', {'objects': objects,
'row_number_offset':row_number_offset,......
and within the template:
{% for o in objects %}
<tr>
<td>{{row_number_offset|add:forloop.counter0 }}</td>
....
robert
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---