Is there a way in getting the row number for items displayed in Paginator? For example, i set that a page should contain 50 items so, the next page row number should start at 51. However I cannot find any way to do this, and when I use forloop.counter
the row number resets every page.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
- Evil ctypes hack in python
You can use the
add
template tag to add the current count from the paginator to the forloop