changeset 1137:10fd55b9ccfb

templating: Fix Inukshuk `paginate` function.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 24 Apr 2018 21:27:46 -0700
parents 5f97b5b59dfe
children c8fb7b024faa
files piecrust/templating/_inukshukext.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/templating/_inukshukext.py	Mon Apr 23 21:47:49 2018 -0700
+++ b/piecrust/templating/_inukshukext.py	Tue Apr 24 21:27:46 2018 -0700
@@ -52,7 +52,7 @@
         if ctx is None or ctx.page is None:
             raise Exception("Can't paginate when no page has been pushed "
                             "on the execution stack.")
-        return Paginator(ctx.page, value,
+        return Paginator(value, ctx.page,
                          sub_num=ctx.sub_num,
                          items_per_page=items_per_page)