From: Zygmunt Krynicki Date: Tue, 14 Jun 2011 10:51:20 +0000 (+0200) Subject: Improve {% autopaginate %} error message X-Git-Tag: release-2.0~6 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/a0cd75db95e10f1e2ff6979ee78fa7d36edb23c3?ds=inline Improve {% autopaginate %} error message --- 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)