From 26be6bbad6a6125931787e520df25e985b9f6998 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 9 Nov 2022 19:21:55 +0100 Subject: [PATCH] Fix reference to plotly json config object --- 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: