Remove unicode strings for python3 compatible
authorAlbert Tugushev <albert@tugushev.ru>
Fri, 1 Jan 2016 15:37:59 +0000 (18:37 +0300)
committerAlbert Tugushev <albert@tugushev.ru>
Sat, 2 Jan 2016 16:31:33 +0000 (19:31 +0300)
linaro_django_pagination/templatetags/pagination_tags.py

index d6e121e..167f13a 100644 (file)
@@ -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):