Kaydet (Commit) 931c60c5 authored tarafından Tim Graham's avatar Tim Graham

Refs #28814 -- Fixed "SyntaxError: Generator expression must be parenthesized" on Python 3.7.

Due to https://bugs.python.org/issue32012.
üst 648957b7
......@@ -162,9 +162,7 @@ class ForeignKeyRawIdWidget(forms.TextInput):
params = self.url_parameters()
if params:
related_url += '?' + '&'.join(
'%s=%s' % (k, v) for k, v in params.items(),
)
related_url += '?' + '&'.join('%s=%s' % (k, v) for k, v in params.items())
context['related_url'] = mark_safe(related_url)
context['link_title'] = _('Lookup')
# The JavaScript code looks for this class.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment