changeset 1143:1c324407bd1f

internal: Cleanup in the paginator's code.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 Jun 2018 21:59:41 -0700
parents 952f3c24a99d
children 9f3e702a8a69
files piecrust/data/paginator.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/data/paginator.py	Tue Jun 05 21:58:53 2018 -0700
+++ b/piecrust/data/paginator.py	Tue Jun 05 21:59:41 2018 -0700
@@ -81,7 +81,7 @@
 
     @property
     def has_items(self):
-        return self.posts_this_page > 0
+        return self.items_this_page > 0
 
     @cached_property
     def items_per_page(self):