Attributes with accessor are serialized with their raw value and adding the attribute on __appends__
causes internal state issues
#683
Labels
bug
An existing feature is not working as intended
Describe the bug
The
serialize
method modifies the internal__attributes__
dict when an attribute is in__appends__
and has an accessor.I noticed this bug when I added the attribute to the
__appends__
because I wanted that attribute to be serialized using the accessor, otherwise the attribute is serialized using the its raw value. Is there any way to achieve this?To Reproduce
Expected behavior
The serialized attribute should be the one returned from the accessor and the internal attribute should not be altered after the serialize call
Desktop (please complete the following information):
What database are you using?
The text was updated successfully, but these errors were encountered: