Skip to content

Commit

Permalink
Use connector registry to fetch the table column class. (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkyryliuk committed Mar 16, 2017
1 parent 4ded37e commit 20aec3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 20aec3c

Please sign in to comment.