[Fixed]-Django pagination on a model with foreignkey

1👍

According to the docs you can pass a list to Paginator so you can do the same with calculation_data:

>>> from django.core.paginator import Paginator
>>> objects = ['john', 'paul', 'george', 'ringo']
>>> p = Paginator(objects, 2)

Leave a comment