mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-26 15:44:01 +00:00
Cast values to string when writing to querystring
Mitigation for https://code.djangoproject.com/ticket/29627 in Django 2.1
This commit is contained in:
parent
b75e484717
commit
80a2389a26
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ def querystring(context, **kwargs):
|
|||
querydict.pop(key, None)
|
||||
else:
|
||||
# Set the key otherwise
|
||||
querydict[key] = value
|
||||
querydict[key] = str(value)
|
||||
|
||||
return '?' + querydict.urlencode()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue