From e8be2da9e26a7ed55f466a196c5de6c3b97dbecc Mon Sep 17 00:00:00 2001 From: Date: Fri, 8 Dec 2017 03:01:16 +0300 Subject: [PATCH] heroku --- blog/templatetags/pagination_filters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/templatetags/pagination_filters.py b/blog/templatetags/pagination_filters.py index b36cd81..791565d 100644 --- a/blog/templatetags/pagination_filters.py +++ b/blog/templatetags/pagination_filters.py @@ -5,11 +5,11 @@ register = template.Library() def truncate(paginator, number): if number < 5: - truncated_paginator = xrange(1, min(paginator+1, number+3)) + truncated_paginator = range(1, min(paginator+1, number+3)) elif number > 4 and number < (paginator-3): - truncated_paginator = xrange(number-3, number+3) + truncated_paginator = range(number-3, number+3) else: - truncated_paginator = xrange(number-3, paginator+1) + truncated_paginator = range(number-3, paginator+1) return truncated_paginator register.filter('truncate', truncate)