From 457e6f7dfd420eb2703bbef9a0cf76add8db3045 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Sat, 7 Nov 2015 11:22:59 -0800 Subject: [PATCH] Fix pagination It was iterating over all the articles, not just the articles for the page being generated. --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index c4a8069..e4d08a1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@
{% if articles %} -{% for article in articles %} +{% for article in (articles_page.object_list if articles_page else articles) %} {% if loop.index == 1 %}