Skip to content

Commit

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

Please sign in to comment.