when adding a new database use Database.set_sqlalchemy_uri so that the password is stored encrypted. (#1177)

This fixes a regression I introduced with PR #1137
This commit is contained in:
Dennis O'Brien 2016-09-22 14:08:42 -07:00 committed by Maxime Beauchemin
parent 49cefc8b00
commit 1fa18922fa
1 changed files with 1 additions and 0 deletions

View File

@ -521,6 +521,7 @@ class DatabaseView(CaravelModelView, DeleteMixin): # noqa
}
def pre_add(self, db):
db.set_sqlalchemy_uri(db.sqlalchemy_uri)
utils.merge_perm(sm, 'database_access', db.perm)
def pre_update(self, db):