Browse Source

corrige lambda function em legacy settings

pull/1580/head
LeandroRoberto 7 years ago
parent
commit
90526f8bb9
  1. 2
      sapl/legacy_migration_settings.py

2
sapl/legacy_migration_settings.py

@ -15,7 +15,7 @@ INSTALLED_APPS += (
DATABASES['legacy'] = config('DATABASE_URL_FONTE', cast=db_url,)
DATABASES['default'] = config(
'DATABASE_URL_DESTINO',
cast=lambda v: v if isinstance(v, dict) else db_url,
cast=lambda v: v if isinstance(v, dict) else db_url(v),
default=DATABASES['default'])
# Sobrescreve o nome dos bancos caso a variável de ambiente seja definida

Loading…
Cancel
Save