From a484654e1775241d2a3ccac0b1afb01753be5d09 Mon Sep 17 00:00:00 2001 From: Gustavo Andres Morero Date: Wed, 6 Dec 2017 16:13:51 -0300 Subject: [PATCH] updating template tag for py3 support. --- pagination/templatetags/pagination_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagination/templatetags/pagination_tags.py b/pagination/templatetags/pagination_tags.py index 1bb663e..1a635c4 100644 --- a/pagination/templatetags/pagination_tags.py +++ b/pagination/templatetags/pagination_tags.py @@ -88,7 +88,7 @@ class AutoPaginateNode(template.Node): self.multiple_paginations = multiple_paginations def render(self, context): - if self.multiple_paginations or context.has_key('paginator'): + if self.multiple_paginations or 'paginator' in context: page_suffix = '_%s' % self.queryset_var else: page_suffix = '' -- 2.45.2