Skip to content

Commit

Permalink
Corrige le bug des accents dans la pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D committed Jul 29, 2014
1 parent 8da6060 commit 54278d7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zds/utils/templatetags/append_to_get.py
Expand Up @@ -27,14 +27,13 @@ def __init__(self, dict):

def render(self, context):
get = context['request'].GET.copy()

path = context['request'].META['PATH_INFO']

if len(get):
path += "?"
for (key, value) in get.items():
for v in get.getlist(key):
path += "&" + u"{0}={1}".format(key, str(v))
for (key, v) in get.items():
for value in get.getlist(key):
path += u"&{0}={1}".format(key, value)

return path

Expand Down

0 comments on commit 54278d7

Please sign in to comment.