You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2019/06/07 06:20:50 UTC
[incubator-superset] branch master updated: Apply DashboardFilter
to the dashboards in SliceModeView (#7475)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2793bdd Apply DashboardFilter to the dashboards in SliceModeView (#7475)
2793bdd is described below
commit 2793bdd2943c0caeede5f4bfb7ce647b4dc1b2c2
Author: Rahul Rahul <42...@users.noreply.github.com>
AuthorDate: Fri Jun 7 01:20:42 2019 -0500
Apply DashboardFilter to the dashboards in SliceModeView (#7475)
* Apply dashboardFilter to dashboards
* added missing comma
---
superset/views/core.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/superset/views/core.py b/superset/views/core.py
index 7c73116..83c8ad0 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -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)