From 43d75e8abf3c9142034ee0bcc2c50073bb3f5f0e Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Wed, 7 Jun 2017 19:26:42 -0700 Subject: [PATCH] Fix #2814 - json serialization edge case --- superset/views/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/views/core.py b/superset/views/core.py index 802b8919887a9..85cc1c4dd412c 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -1101,7 +1101,9 @@ def filter(self, datasource_type, datasource_id, column): if not self.datasource_access(datasource): return json_error_response(DATASOURCE_ACCESS_ERR) - payload = json.dumps(datasource.values_for_column(column)) + payload = json.dumps( + datasource.values_for_column(column), + default=utils.json_int_dttm_ser) return json_success(payload) def save_or_overwrite_slice(