[Answered ]-Django-pagination not working

2👍

Looks like the autopaginate tag cannot resolve variable category.entries.all into a valid object (queryset in this case). Quick fix that should work is to pass from your view variable named category_entries (or give it some other name) which will hold already resolved queryset:

category_entries = category.entries.all()

remember to add category_entries to your template context and change category.entries.all to category_entries in your template.

👤dzida

Leave a comment