Skip to content

Commit

Permalink
Merge pull request #105 from RedTurtle/fix_skipped_fields
Browse files Browse the repository at this point in the history
fix list of skipped fields in serializer/deserializer
  • Loading branch information
cekk authored Apr 8, 2024
2 parents 694c675 + 03eee64 commit d55121a
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 @@ -10,6 +10,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 d55121a

Please sign in to comment.