mirror of https://github.com/django/django.git
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:
parent
648957b707
commit
931c60c521
|
@ -162,9 +162,7 @@ class ForeignKeyRawIdWidget(forms.TextInput):
|
||||||
|
|
||||||
params = self.url_parameters()
|
params = self.url_parameters()
|
||||||
if params:
|
if params:
|
||||||
related_url += '?' + '&'.join(
|
related_url += '?' + '&'.join('%s=%s' % (k, v) for k, v in params.items())
|
||||||
'%s=%s' % (k, v) for k, v in params.items(),
|
|
||||||
)
|
|
||||||
context['related_url'] = mark_safe(related_url)
|
context['related_url'] = mark_safe(related_url)
|
||||||
context['link_title'] = _('Lookup')
|
context['link_title'] = _('Lookup')
|
||||||
# The JavaScript code looks for this class.
|
# The JavaScript code looks for this class.
|
||||||
|
|
Loading…
Reference in New Issue