1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Removed uneeded generator expressions and list comprehensions.

This commit is contained in:
Sergey Fedoseev
2019-02-09 19:18:48 +05:00
committed by Tim Graham
parent b1a2ad6925
commit 1933e56eca
9 changed files with 16 additions and 16 deletions

View File

@@ -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: