diff --git a/sapl/legacy_migration_settings.py b/sapl/legacy_migration_settings.py index 5d2faae00..c8b1fe3a7 100644 --- a/sapl/legacy_migration_settings.py +++ b/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