Skip to content
Snippets Groups Projects
Unverified Commit 178ae6f2 authored by mfriedy's avatar mfriedy Committed by GitHub
Browse files

Fix reference to plotly json config object (#427)


Co-authored-by: default avatarMatt <matthew.fried@telenor.com>
parent eaeeb94e
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ def to_json_django_plotly(plotly_object, pretty=False, engine=None): ...@@ -108,7 +108,7 @@ def to_json_django_plotly(plotly_object, pretty=False, engine=None):
return json.dumps(plotly_object, cls=DjangoPlotlyJSONEncoder, **opts) return json.dumps(plotly_object, cls=DjangoPlotlyJSONEncoder, **opts)
elif engine == "orjson": elif engine == "orjson":
JsonConfig.validate_orjson() config.validate_orjson()
opts = orjson.OPT_NON_STR_KEYS | orjson.OPT_SERIALIZE_NUMPY opts = orjson.OPT_NON_STR_KEYS | orjson.OPT_SERIALIZE_NUMPY
if pretty: if pretty:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment