From: tzangms Date: Wed, 29 Jul 2009 03:23:59 +0000 (+0800) Subject: add MEDIA_URL variable in templatetags, so that pagination template can use images X-Git-Tag: release-2.0~28^2~1 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/5ff666ecd6c887c9ae7baac9ec90f64c83b59a05?ds=sidebyside;hp=-c add MEDIA_URL variable in templatetags, so that pagination template can use images --- 5ff666ecd6c887c9ae7baac9ec90f64c83b59a05 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,