Skip to content

Commit 178ae6f

Browse files
authored
Fix reference to plotly json config object (#427)
Co-authored-by: Matt <[email protected]>
1 parent eaeeb94 commit 178ae6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_plotly_dash/_patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def to_json_django_plotly(plotly_object, pretty=False, engine=None):
108108

109109
return json.dumps(plotly_object, cls=DjangoPlotlyJSONEncoder, **opts)
110110
elif engine == "orjson":
111-
JsonConfig.validate_orjson()
111+
config.validate_orjson()
112112
opts = orjson.OPT_NON_STR_KEYS | orjson.OPT_SERIALIZE_NUMPY
113113

114114
if pretty:

0 commit comments

Comments
 (0)