diff options
| author | Tim Graham <timograham@gmail.com> | 2017-11-17 15:38:29 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-11-17 15:38:29 -0500 |
| commit | 931c60c5216bd71bc11f489e00e063331cf21f40 (patch) | |
| tree | b29dc348a3ca2c15be06f11df1163ab599372347 /django/contrib/admin/widgets.py | |
| parent | 648957b707491b99dc32a3cdbeaaa3fe9f3164cf (diff) | |
Refs #28814 -- Fixed "SyntaxError: Generator expression must be parenthesized" on Python 3.7.
Due to https://bugs.python.org/issue32012.
Diffstat (limited to 'django/contrib/admin/widgets.py')
| -rw-r--r-- | django/contrib/admin/widgets.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py index b9d45a10ee..dfb288642e 100644 --- a/django/contrib/admin/widgets.py +++ b/django/contrib/admin/widgets.py @@ -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. |
