-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
AttributeError: 'super' object has no attribute 'coerce'
when setting value as None
#10
Comments
Yeah this seems like a bug. Nulling a field should certainly be possible. Adding a check for |
Great, I'll put in a PR. Would you like me to take care of a patch version bump or is this something you'd like to do separately? |
Very simple PR up - #11. Feel free to take a look and I'll be happy to add any further changes. |
Thanks again. I'll take care of the change log entry, version bump and new PyPI release when I have a bit of spare time. |
@edelooff Would love to see a pypi release for this. Let me know if I can do anything to help. |
@benvand https://pypi.org/project/sqlalchemy-json/ done, thanks for the request. |
@edelooff it looks like this is still actual with https://pypi.org/project/sqlalchemy-json/0.5.0 |
repeat fix edelooff#10 for NestedMutableDict and NestedMutableList
If I have a JSON field, say
a_json
that has been associated withNestedMutable
I cannot set it's value asNone
without triggering anAttributeError
asNone
does not have thecoerce
attribute.For example:
I believe setting the value as
None
should be allowed and should be quite an easy one to fix. I'm happy to put in a PR if you agree this is sensible, just let me know.Thanks :)
The text was updated successfully, but these errors were encountered: