I want to build a url. My function adds the word kwargs
to the result, which it should not.
custom_redirect('mieteinheit', kwargs={"wohnungsgruppenname": form.cleaned_data["wohnungsgruppenname"]})
def custom_redirect(url_name, *args, **kwargs):
#some code is passed
"?%s" % urllib.parse.urlencode(kwargs)
This creates:
?kwargs=%7B%27wohnungsgruppenname%27%3A+%27ghs%27%7D
But it should create
?wohnungsgruppenname%3Dwohnungsgruppenname
Any ideas?