mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
fix comparison for db engine
This commit is contained in:
@@ -99,7 +99,7 @@ query = {{ query|safe }}
|
||||
if dburl else settings.DATABASES["default"])
|
||||
if "sqlite" in db_settings["ENGINE"]:
|
||||
dbtype = "sqlite"
|
||||
elif "psycopg2" in db_settings["ENGINE"]:
|
||||
elif "postgresql" in db_settings["ENGINE"]:
|
||||
dbtype = "postgres"
|
||||
else:
|
||||
dbtype = "mysql"
|
||||
|
||||
Reference in New Issue
Block a user