From a2d2f8bb8c006adcf80bb2ac18b82f3b486f366a Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 18 May 2017 15:56:24 -0700 Subject: [PATCH] Enable filter value autocomplete in examples (#2781) --- superset/data/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/data/__init__.py b/superset/data/__init__.py index 87599c4f0662c..52e6ce3370b33 100644 --- a/superset/data/__init__.py +++ b/superset/data/__init__.py @@ -179,6 +179,7 @@ def load_world_bank_health_n_pop(): tbl.description = utils.readfile(os.path.join(DATA_FOLDER, 'countries.md')) tbl.main_dttm_col = 'year' tbl.database = get_or_create_main_db() + tbl.filter_select_enabled = True db.session.merge(tbl) db.session.commit() tbl.fetch_metadata() @@ -572,6 +573,7 @@ def load_birth_names(): obj = TBL(table_name='birth_names') obj.main_dttm_col = 'ds' obj.database = get_or_create_main_db() + obj.filter_select_enabled = True db.session.merge(obj) db.session.commit() obj.fetch_metadata()