Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[routes] Re-adding FAB API routes for TableColumnInlineView (apache#9036
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 162f810)
  • Loading branch information
john-bodley committed Jan 28, 2020
1 parent 7d95c8b commit 13ecaf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/connectors/sqla/views.py
Expand Up @@ -50,7 +50,7 @@
class TableColumnInlineView(CompactCRUDMixin, SupersetModelView):
datamodel = SQLAInterface(models.TableColumn)
# TODO TODO, review need for this on related_views
include_route_methods = RouteMethod.RELATED_VIEW_SET
include_route_methods = RouteMethod.RELATED_VIEW_SET | RouteMethod.API_SET

list_title = _("Columns")
show_title = _("Show Column")
Expand Down Expand Up @@ -227,7 +227,7 @@ class SqlMetricInlineView(CompactCRUDMixin, SupersetModelView):

class TableModelView(DatasourceModelView, DeleteMixin, YamlExportMixin):
datamodel = SQLAInterface(models.SqlaTable)
include_route_methods = RouteMethod.CRUD_SET | RouteMethod.API_SET
include_route_methods = RouteMethod.CRUD_SET

list_title = _("Tables")
show_title = _("Show Table")
Expand Down

0 comments on commit 13ecaf6

Please sign in to comment.