Note that you can give Paginator a list/tuple, a Django QuerySet, or any other object with a count() or __len__() method. When determining the number of objects contained in the passed object, Paginator...
Paginator
QuerySet
count()
__len__()
Paginator...