diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2019-02-09 19:18:48 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-09 09:18:48 -0500 |
| commit | 1933e56eca1ad17de7dd133bfb7cbee9858a75a3 (patch) | |
| tree | 3dbc7a8fa58cba631591ebdfa22c687948fbb887 /django/forms/forms.py | |
| parent | b1a2ad69251053a5f1ce71ffa95b188c4a765388 (diff) | |
Removed uneeded generator expressions and list comprehensions.
Diffstat (limited to 'django/forms/forms.py')
| -rw-r--r-- | django/forms/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py index 0c49a94432..dd562099ab 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -160,7 +160,7 @@ class BaseForm: "Key '%s' not found in '%s'. Choices are: %s." % ( name, self.__class__.__name__, - ', '.join(sorted(f for f in self.fields)), + ', '.join(sorted(self.fields)), ) ) if name not in self._bound_fields_cache: |
