mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
This commit is contained in:
@@ -14,7 +14,7 @@ def get_max_column_name_length():
|
||||
allowed_len = None
|
||||
db_alias = None
|
||||
|
||||
for db in settings.DATABASES.keys():
|
||||
for db in settings.DATABASES:
|
||||
connection = connections[db]
|
||||
max_name_length = connection.ops.max_name_length()
|
||||
if max_name_length is None or connection.features.truncates_names:
|
||||
|
||||
Reference in New Issue
Block a user