You may have to do a bit of computation back on the server in python
code to get the data you're after. From the pagination object you know
what page you are currently on, you also know how many items are on a
page so:

last_item = page_num * items_per_page
first_item = last_item - items_per_page + 1

Then in your template you can say:

Displaying results {{ first_item }} - {{ last_item }} of {{ p.count }}
found.


On Jul 29, 3:51 pm, Mark <marcwar...@gmail.com> wrote:
> Thanks, but I have been. Its still not clear - To date I have always
> been displaying
>
> "Page 1 of 23. Showing 10 results per page"
>
> I am just lost on how to do this.
>
> On Jul 29, 3:44 pm, krylatij <kryla...@gmail.com> wrote:
>
> > Read 
> > documentationhttp://www.djangoproject.com/documentation/models/pagination/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to