Skip to content

Commit

Permalink
fix list of skipped fields in serializer/deserializer
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Mar 28, 2024
1 parent ff608ee commit 03eee64
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Changelog
[cekk]
- Add flag in controlpanel to enable/disable INameChooser customization.
[cekk]
- Exclude bg_color from transformed fields in deserializer.
[cekk]


5.4.8 (2024-03-19)
Expand Down
10 changes: 8 additions & 2 deletions src/redturtle/volto/restapi/deserializer/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
from zope.interface import implementer


EXCLUDE_KEYS = ["@type", "token", "value", "@id", "query"]
EXCLUDE_TYPES = ["title", "listing", "calendar", "searchEvents", "form"]
EXCLUDE_KEYS = ["@type", "token", "value", "@id", "query", "bg_color"]
EXCLUDE_TYPES = [
"title",
"listing",
"calendar",
"searchEvents",
"form",
]


class GenericResolveUIDDeserializer(object):
Expand Down
10 changes: 8 additions & 2 deletions src/redturtle/volto/restapi/serializer/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@
from zope.interface import implementer


EXCLUDE_KEYS = ["@type"]
EXCLUDE_TYPES = ["title", "listing", "form"]
EXCLUDE_KEYS = ["@type", "token", "value", "@id", "query", "bg_color"]
EXCLUDE_TYPES = [
"title",
"listing",
"calendar",
"searchEvents",
"form",
]


class GenericResolveUIDSerializer(object):
Expand Down

0 comments on commit 03eee64

Please sign in to comment.