We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need dynamorm not to strip out Nones in some cases. The data isn't structured, so I can't map it to a marshmallow schema and rely on missing=None.
None
missing=None
class Model(DynaModel): class Table: name = 'table' hash_key = "key" class Schema: key = marshmallow.fields.Integer() some_formless_data = marshmallow.fields.Dict() m = Model(key=1, some_formless_data={'foo': 'bar', 'noneval': None}) m.save() same = Model.get(key=1) same.some_formless_data >> {'foo': 'bar'}
It's not saving the entries whose values are None. This seems like a common issue -- how do I persist and save a value as a None?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I need dynamorm not to strip out
None
s in some cases. The data isn't structured, so I can't map it to a marshmallow schema and rely onmissing=None
.It's not saving the entries whose values are None. This seems like a common issue -- how do I persist and save a value as a None?
The text was updated successfully, but these errors were encountered: