Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix imports and names
oldPadavan623a84fdfd2a
diff --git a/saleor/core/utils/json.py b/saleor/core/utils/json_serializer.pysimilarity index 72%rename from saleor/core/utils/json.pyrename to saleor/core/utils/json_serializer.pyindex 082c9616df..b33c4cbc11 100644--- a/saleor/core/utils/json.py+++ b/saleor/core/utils/json_serializer.py@@ -1,9 +1,9 @@-from django.core.serializers.json import DjangoJSONEncoder, Serializer-+from django.core.serializers.json import (+ DjangoJSONEncoder, Serializer as JsonSerializer)from prices import Money-class Serializer(Serializer):+class Serializer(JsonSerializer):def _init_options(self):super()._init_options()self.json_kwargs['cls'] = CustomJsonEncoderdiff --git a/saleor/settings.py b/saleor/settings.pyindex 8a2f24e07d..ce573b07c4 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -538,4 +538,4 @@ if SENTRY_DSN:SERIALIZATION_MODULES = {- 'json': 'saleor.core.utils.json'}+ 'json': 'saleor.core.utils.json_serializer'}