Link to database-urls in databaseadd view (#1480)

This commit is contained in:
Dirk Kelly 2016-11-09 11:49:01 -05:00 committed by Maxime Beauchemin
parent 0c221a28d1
commit 55668ca621
1 changed files with 6 additions and 4 deletions

View File

@ -503,10 +503,12 @@ class DatabaseView(CaravelModelView, DeleteMixin): # noqa
edit_template = "caravel/models/database/edit.html" edit_template = "caravel/models/database/edit.html"
base_order = ('changed_on', 'desc') base_order = ('changed_on', 'desc')
description_columns = { description_columns = {
'sqlalchemy_uri': ( 'sqlalchemy_uri': utils.markdown(
"Refer to the SqlAlchemy docs for more information on how " "Refer to the "
"to structure your URI here: " "[SqlAlchemy docs]"
"http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html"), "(http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html#"
"database-urls) "
"for more information on how to structure your URI.", True),
'expose_in_sqllab': _("Expose this DB in SQL Lab"), 'expose_in_sqllab': _("Expose this DB in SQL Lab"),
'allow_run_sync': _( 'allow_run_sync': _(
"Allow users to run synchronous queries, this is the default " "Allow users to run synchronous queries, this is the default "