ChatGPT - Optimizing Pagination in Django