mirror of https://github.com/django/django.git
Removed unnecessary dict.get() call in favor of direct indexing.
The 'TEST' key is always set to a dictionary in ConnectionHandler.
This commit is contained in:
parent
95ae1a9f8c
commit
2540c5f08c
|
@ -170,7 +170,7 @@ def setup_databases(verbosity, interactive, keepdb=False, debug_sql=False, paral
|
|||
verbosity=verbosity,
|
||||
autoclobber=not interactive,
|
||||
keepdb=keepdb,
|
||||
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
|
||||
serialize=connection.settings_dict['TEST'].get('SERIALIZE', True),
|
||||
)
|
||||
if parallel > 1:
|
||||
for index in range(parallel):
|
||||
|
|
Loading…
Reference in New Issue