mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Force string formatting of integer values
This commit is contained in:
parent
ce1a2875bc
commit
dc70fdbe03
@ -178,7 +178,7 @@ def querystring(request, **kwargs):
|
|||||||
querydict = request.GET.copy()
|
querydict = request.GET.copy()
|
||||||
for k, v in kwargs.items():
|
for k, v in kwargs.items():
|
||||||
if v is not None:
|
if v is not None:
|
||||||
querydict[k] = v
|
querydict[k] = str(v)
|
||||||
elif k in querydict:
|
elif k in querydict:
|
||||||
querydict.pop(k)
|
querydict.pop(k)
|
||||||
querystring = querydict.urlencode(safe='/')
|
querystring = querydict.urlencode(safe='/')
|
||||||
|
Loading…
Reference in New Issue
Block a user