0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00

Implement __reduce__ in StructValue class

This commit is contained in:
Tidiane Dia 2023-02-08 10:49:16 +00:00 committed by Matt Westcott
parent fc09a2cedf
commit 8a78a51066

View File

@ -70,6 +70,9 @@ class StructValue(collections.OrderedDict):
] ]
) )
def __reduce__(self):
return (self.__class__, (self.block,), None, None, iter(self.items()))
class PlaceholderBoundBlock(BoundBlock): class PlaceholderBoundBlock(BoundBlock):
""" """