read query params for json in dashboard endpoint (#4337)

This commit is contained in:
Hugh A. Miles II
2018-02-05 11:48:12 -08:00
committed by Maxime Beauchemin
parent e965f95477
commit 2789385688

View File

@@ -1953,6 +1953,9 @@ class Superset(BaseSupersetView):
'common': self.common_bootsrap_payload(),
}
if request.args.get('json') == 'true':
return json_success(json.dumps(bootstrap_data))
return self.render_template(
'superset/dashboard.html',
entry='dashboard',