diff --git a/CHANGES.rst b/CHANGES.rst index ac53243..eee1319 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,8 @@ Changelog [mamico] - Customize @@display-file to allow to download files with proper filename. [cekk] +- Add "type" to EXCLUDE_KEYS in blocks serializer/deserializer to not convert this slate attribute. + [cekk] 5.5.1 (2024-07-22) ------------------ diff --git a/src/redturtle/volto/restapi/deserializer/blocks.py b/src/redturtle/volto/restapi/deserializer/blocks.py index 78e6610..0fe4dc9 100644 --- a/src/redturtle/volto/restapi/deserializer/blocks.py +++ b/src/redturtle/volto/restapi/deserializer/blocks.py @@ -9,7 +9,7 @@ from zope.interface import implementer -EXCLUDE_KEYS = ["@type", "token", "value", "@id", "query", "bg_color"] +EXCLUDE_KEYS = ["@type", "type", "token", "value", "@id", "query", "bg_color"] EXCLUDE_TYPES = [ "title", "listing", diff --git a/src/redturtle/volto/restapi/serializer/blocks.py b/src/redturtle/volto/restapi/serializer/blocks.py index f65eb18..559b352 100644 --- a/src/redturtle/volto/restapi/serializer/blocks.py +++ b/src/redturtle/volto/restapi/serializer/blocks.py @@ -13,7 +13,7 @@ from zope.interface import implementer -EXCLUDE_KEYS = ["@type", "token", "value", "@id", "query", "bg_color"] +EXCLUDE_KEYS = ["@type", "type", "token", "value", "@id", "query", "bg_color"] EXCLUDE_TYPES = [ "title", "listing",