fnp
/
django-pagination.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Oops, do not return new_context just yet, update and then return"
[django-pagination.git]
/
linaro_django_pagination
/
templatetags
/
pagination_tags.py
diff --git
a/linaro_django_pagination/templatetags/pagination_tags.py
b/linaro_django_pagination/templatetags/pagination_tags.py
index
a4e4fed
..
be22347
100644
(file)
--- a/
linaro_django_pagination/templatetags/pagination_tags.py
+++ b/
linaro_django_pagination/templatetags/pagination_tags.py
@@
-326,6
+326,7
@@
def paginate(context, window=DEFAULT_WINDOW, margin=DEFAULT_MARGIN):
new_context['getvars'] = "&%s" % getvars.urlencode()
else:
new_context['getvars'] = ''
new_context['getvars'] = "&%s" % getvars.urlencode()
else:
new_context['getvars'] = ''
+ return new_context
except (KeyError, AttributeError):
new_context = {}
except (KeyError, AttributeError):
new_context = {}