You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The actual issue was that the dates were converting to todays date if they were None
josephmancuso
changed the title
Model dates do not convert to pendulum instances when accessed
dates are converting to todays date if they were None when accessed on models
Nov 29, 2020
actually when assigning a relationship, relationship is being serialized (to a string) and then when retrieving the attribute it does not convert back to pendulum.
Could possibly add this logic inside the getattr method on the model or find a way to register the relationship without serializing
If i set a field in the
__dates__
attribute, it converts fine on serialize but does not work on accessing the attribute.If you try to use a pendulum instance on the attribute you will get:
The text was updated successfully, but these errors were encountered: