From: Albert Tugushev Date: Fri, 1 Jan 2016 15:37:59 +0000 (+0300) Subject: Remove unicode strings for python3 compatible X-Git-Tag: 2.2.0~2^2~1 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/cfb14ce2fe55045b2c6bd2440ae04f92cc7db131?ds=sidebyside;hp=-c Remove unicode strings for python3 compatible --- cfb14ce2fe55045b2c6bd2440ae04f92cc7db131 diff --git a/linaro_django_pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py index d6e121e..167f13a 100644 --- a/linaro_django_pagination/templatetags/pagination_tags.py +++ b/linaro_django_pagination/templatetags/pagination_tags.py @@ -174,7 +174,7 @@ class AutoPaginateNode(Node): 'False, an HTTP 404 page would have been shown instead.') context[key] = [] context['invalid_page'] = True - return u'' + return '' if self.context_var is not None: context[self.context_var] = page_obj.object_list else: @@ -182,7 +182,7 @@ class AutoPaginateNode(Node): context['paginator'] = paginator context['page_obj'] = page_obj context['page_suffix'] = page_suffix - return u'' + return '' class PaginateNode(Node):