From 178ae6f2c92050675e0e1994091793b25f4e93f3 Mon Sep 17 00:00:00 2001 From: mfriedy <matt.n.fried@gmail.com> Date: Fri, 11 Nov 2022 00:16:45 +0100 Subject: [PATCH] Fix reference to plotly json config object (#427) Co-authored-by: Matt <matthew.fried@telenor.com> --- django_plotly_dash/_patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_plotly_dash/_patches.py b/django_plotly_dash/_patches.py index 43ad594..cb932d7 100644 --- a/django_plotly_dash/_patches.py +++ b/django_plotly_dash/_patches.py @@ -108,7 +108,7 @@ def to_json_django_plotly(plotly_object, pretty=False, engine=None): return json.dumps(plotly_object, cls=DjangoPlotlyJSONEncoder, **opts) elif engine == "orjson": - JsonConfig.validate_orjson() + config.validate_orjson() opts = orjson.OPT_NON_STR_KEYS | orjson.OPT_SERIALIZE_NUMPY if pretty: -- GitLab