The problem is discussed in https://code.djangoproject.com/ticket/25582. I
knew the ticket existed but I found it with the Google search:
site:code.djangoproject.com reverse querystring.
On Monday, March 5, 2018 at 8:52:14 AM UTC-5, Collin Anderson wrote:
>
> Hi Matthew,
>
> Are you aware of Pyt
Hi Matthew,
Are you aware of Python's urlencode?
https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode
It sounds like you want something like:
def reverse_with_querystring(viewname, data=None):
return "{url}{querystring}".format(url=reverse(viewname),
querystring='?' + ur