paginators.py (of django-paging package):
try:
_page = EndlessPage(list(self.object_list[bottom:top]), number, self)
this line gives a `TypeError: unhashable type error, although that object_list comes from a standard QuerySet that can be used with [bottom:top] without a problem.
template:
{% with paginate(request, my_queryset) as results %}
{{ results.paging }}
{% for result in results.objects %}
{{ result }}
{% endfor %}
{{ results.paging }}
{% endwith %}`
view:
my_objects = BetterPaginator(queryset,25)
page = 1
context = { 'my_queryset': my_objects.get_context(page) }