Skip to content

Commit

Permalink
Fix apache#2814 - json serialization edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jun 8, 2017
1 parent 7c28e4e commit 43d75e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/views/core.py
Expand Up @@ -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(
Expand Down

0 comments on commit 43d75e8

Please sign in to comment.