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

Due to https://bugs.python.org/issue32012.
This commit is contained in:
Tim Graham 2017-11-17 15:38:29 -05:00
parent 648957b707
commit 931c60c521
1 changed files with 1 additions and 3 deletions

View File

@ -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.