[charts] Fix, double registration of charts API (#9134)
This commit is contained in:
parent
966d321703
commit
1aab4c072c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue