djangosnippets.org: Latest snippets posted by egmanojhttps://djangosnippets.org/users/egmanoj/2009-03-23T06:15:35.110129-05:00egmanojFilter to adjust forloop.counter across pages in a paginated view
2009-03-23T06:15:35.110129-05:00egmanojhttps://djangosnippets.org/snippets/1391/<p><strong>Update:</strong> </p>
<p>Never mind. See <a href="http://www.djangosnippets.org/snippets/1391/#c1763">dc's comment</a> below for a much easier way to do this.</p>
<p>I recently had to write a template for a paginated view which displayed a serial number for each <code>object</code> in the <code>object_list</code>. I normally use <code>forloop.counter</code> for general purpose serial numbers. However this did …</p>
Freely redistributable