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:40:12 -0500 |
| commit | 8e63cc582f8ab66e5d8a94a72b6d12eb4c7e85e6 (patch) | |
| tree | dce59630679b7e27d367d4961d8a7cfa346b2dae | |
| parent | 2b3907cf74b7d4c15e50661c659f6b5ec7cb2f8d (diff) | |
[2.0.x] Refs #28814 -- Fixed "SyntaxError: Generator expression must be parenthesized" on Python 3.7.
Due to https://bugs.python.org/issue32012.
Backport of 931c60c5216bd71bc11f489e00e063331cf21f40 from master
| -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. |
