Server Side Paging...How to get the totalcount of items?

22 views
Skip to first unread message

Rakhee Menon

unread,
Sep 26, 2017, 6:29:45 AM9/26/17
to Django users
Hi ,

I was trying to do server side paging and wanted to send the totalcount of items along with itemPerPage..I have attached my code.Can anyone suggest how to do it??

Thanks in Advance.
Capture34.PNG

Daniel Roseman

unread,
Sep 26, 2017, 6:47:13 AM9/26/17
to Django users
Please don't post code as pictures.

The pagination docs list all the attributes of Paginator objects, including `.count` which is described as "The total number of objects, across all pages.". See https://docs.djangoproject.com/en/1.11/topics/pagination/#django.core.paginator.Paginator.count
--
DR. 
Reply all
Reply to author
Forward
0 new messages