mirror of
https://github.com/apache/superset.git
synced 2026-06-03 22:59:21 +00:00
Apply DashboardFilter to the dashboards in SliceModeView (#7475)
* Apply dashboardFilter to dashboards * added missing comma
This commit is contained in:
committed by
Maxime Beauchemin
parent
271612cfec
commit
2793bdd294
@@ -546,6 +546,12 @@ class SliceModelView(SupersetModelView, DeleteMixin): # noqa
|
||||
'viz_type': _('Visualization Type'),
|
||||
}
|
||||
|
||||
add_form_query_rel_fields = {
|
||||
'dashboards': [['name', DashboardFilter, None]],
|
||||
}
|
||||
|
||||
edit_form_query_rel_fields = add_form_query_rel_fields
|
||||
|
||||
def pre_add(self, obj):
|
||||
utils.validate_json(obj.params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user