diff options
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: |
