[charts] Fix, double registration of charts API (#9134)

This commit is contained in:
Daniel Vaz Gaspar 2020-02-14 08:46:24 +00:00 committed by GitHub
parent 966d321703
commit 1aab4c072c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -22,7 +22,6 @@ from marshmallow import fields, post_load, validates_schema, ValidationError
from marshmallow.validate import Length
from sqlalchemy.orm.exc import NoResultFound
from superset import appbuilder
from superset.connectors.connector_registry import ConnectorRegistry
from superset.exceptions import SupersetException
from superset.models.dashboard import Dashboard
@ -174,6 +173,3 @@ class ChartRestApi(SliceMixin, BaseOwnedModelRestApi):
"owners": ("first_name", "asc"),
}
filter_rel_fields_field = {"owners": "first_name", "dashboards": "dashboard_title"}
appbuilder.add_api(ChartRestApi)