diff --git a/superset/charts/commands/importers/v1/__init__.py b/superset/charts/commands/importers/v1/__init__.py index f407a4662c..ab88038aaa 100644 --- a/superset/charts/commands/importers/v1/__init__.py +++ b/superset/charts/commands/importers/v1/__init__.py @@ -89,9 +89,7 @@ class ImportChartsCommand(ImportModelsCommand): config.update( { "datasource_id": dataset.id, - "datasource_type": "view" - if dataset.is_sqllab_view - else "table", + "datasource_type": "table", "datasource_name": dataset.table_name, } ) diff --git a/superset/commands/importers/v1/examples.py b/superset/commands/importers/v1/examples.py index 43d7e7e1fa..679b9c441b 100644 --- a/superset/commands/importers/v1/examples.py +++ b/superset/commands/importers/v1/examples.py @@ -138,7 +138,7 @@ class ImportExamplesCommand(ImportModelsCommand): dataset_info[str(dataset.uuid)] = { "datasource_id": dataset.id, - "datasource_type": "view" if dataset.is_sqllab_view else "table", + "datasource_type": "table", "datasource_name": dataset.table_name, }