Skip to content
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

When field has a date with tz and you try to update without a timezone, springfield should catch and treat as a changed value instead of raising an error #29

Open
BatsShadow opened this issue Nov 13, 2019 · 0 comments

Comments

@BatsShadow
Copy link
Contributor

  File "/cellsec/virtualenv/lib/python2.7/site-packages/springfield/fields.py", line 43, in __set__
    if new_value != old_value:
TypeError: can't compare offset-naive and offset-aware datetimes

This error should be caught and treated as not-equal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant