From a0cd75db95e10f1e2ff6979ee78fa7d36edb23c3 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Tue, 14 Jun 2011 12:51:20 +0200 Subject: [PATCH 1/1] Improve {% autopaginate %} error message --- linaro_django_pagination/templatetags/pagination_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linaro_django_pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py index 2d15e72..bb2dd9a 100644 --- a/linaro_django_pagination/templatetags/pagination_tags.py +++ b/linaro_django_pagination/templatetags/pagination_tags.py @@ -93,8 +93,8 @@ def do_autopaginate(parser, token): if queryset_var is None: raise TemplateSyntaxError( "Invalid syntax. Proper usage of this tag is: " - "{%% autopaginate QUERYSET [PAGINATE_BY] [ORPHANS]" - " [as CONTEXT_VAR_NAME] %%}") + "{% autopaginate QUERYSET [PAGINATE_BY] [ORPHANS]" + " [as CONTEXT_VAR_NAME] %}") return AutoPaginateNode(queryset_var, multiple_paginations, paginate_by, orphans, context_var) -- 2.20.1