From 9e414cdd4ecdd1eaebd9fce9582adb163705f674 Mon Sep 17 00:00:00 2001 From: tzangms Date: Wed, 29 Jul 2009 11:23:59 +0800 Subject: [PATCH] add MEDIA_URL variable in templatetags, so that pagination template can use images Signed-off-by: Eric Florenzano --- pagination/templatetags/pagination_tags.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pagination/templatetags/pagination_tags.py b/pagination/templatetags/pagination_tags.py index 90d26de..3733434 100644 --- a/pagination/templatetags/pagination_tags.py +++ b/pagination/templatetags/pagination_tags.py @@ -199,6 +199,7 @@ def paginate(context, window=DEFAULT_WINDOW): differenced.sort() pages.extend(differenced) to_return = { + 'MEDIA_URL': settings.MEDIA_URL, 'pages': pages, 'page_obj': page_obj, 'paginator': paginator, -- 2.45.2