This is an automated email from the ASF dual-hosted git repository. beto pushed a commit to branch VIZ-1193 in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit 46b2ce50b7bfbfbb2316aa5b013d37663e8d0a6f Author: Beto Dealmeida <[email protected]> AuthorDate: Tue Nov 19 09:53:20 2019 -0800 Small fix --- superset/views/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset/views/core.py b/superset/views/core.py index e5a96fa..f765794 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -2293,8 +2293,7 @@ class Superset(BaseSupersetView): table_name = data.get("datasourceName") table = db.session.query(SqlaTable).filter_by(table_name=table_name).first() if not table: - table = SqlaTable(table_name=table_name) - table.owners = [g.user] + table = SqlaTable(table_name=table_name, owners=[g.user]) table.database_id = data.get("dbId") table.schema = data.get("schema") table.template_params = data.get("templateParams")
