Ye thats what I was afraid of - i was hoping there was something in the Pagination object that would help me out. But I cant see anything.
Maybe someone will point it out after I have implemented the above. Thanks. On Jul 29, 3:58 pm, cootetom <coote...@gmail.com> wrote: > You may have to do a bit of computation back on the server in python > code to get the data you're after. From thepaginationobject 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: > > Displayingresults{{ 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 > > beendisplaying > > > "Page 1 of 23. Showing 10resultsper 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 -~----------~----~----~----~------~----~------~--~---