fnp
/
django-pagination.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
149b639
)
add MEDIA_URL variable in templatetags, so that pagination template can use images
author
tzangms
<tzangms@streetvoice.com>
Wed, 29 Jul 2009 03:23:59 +0000
(11:23 +0800)
committer
Eric Florenzano
<floguy@gmail.com>
Wed, 29 Jul 2009 04:03:56 +0000
(12:03 +0800)
Signed-off-by: Eric Florenzano <floguy@gmail.com>
pagination/templatetags/pagination_tags.py
patch
|
blob
|
history
diff --git
a/pagination/templatetags/pagination_tags.py
b/pagination/templatetags/pagination_tags.py
index
90d26de
..
3733434
100644
(file)
--- 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 = {
differenced.sort()
pages.extend(differenced)
to_return = {
+ 'MEDIA_URL': settings.MEDIA_URL,
'pages': pages,
'page_obj': page_obj,
'paginator': paginator,
'pages': pages,
'page_obj': page_obj,
'paginator': paginator,