From 0d2698760b38555ff12498ad7fd70611e6237519 Mon Sep 17 00:00:00 2001 From: Bogdan Kyryliuk Date: Wed, 15 Mar 2017 17:25:22 -0700 Subject: [PATCH] Use connector registry to fetch the table column class. --- superset/views/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/views/core.py b/superset/views/core.py index a6c71a8276c20..80d0e61924540 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -1792,7 +1792,9 @@ def sqllab_viz(self): metrics = [] for column_name, config in data.get('columns').items(): is_dim = config.get('is_dim', False) - col = models.TableColumn( + SqlaTable = ConnectorRegistry.sources['table'] + TableColumn = SqlaTable.column_cls + col = TableColumn( column_name=column_name, filterable=is_dim, groupby=is_dim,