Skip to content

Commit

Permalink
Add type to EXCLUDE_KEYS in blocks serializer/deserializer to not con…
Browse files Browse the repository at this point in the history
…vert this slate attribute (#114)
  • Loading branch information
cekk authored Sep 5, 2024
1 parent 11f2f26 commit ad1e154
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/volto/restapi/deserializer/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/volto/restapi/serializer/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ad1e154

Please sign in to comment.