Stefan Wójcik
Stefan Wójcik
Note that this is a breaking change as `unicode(exc)` no longer contains just a stringified json for validation errors. That said, we should encourage people to use `exc.errors` and `exc.field_errors`...
@thomasst would you please do a quick review of this one?
I'm not aware of any. However, to introduce this breaking change in a mature way, I think we should bump the major part of this package's version after this is...
@eengoron is this something we still want to do? If no, feel free to close this PR. If yes, but there's a better way to do it, please close this...
I think `update` should work the way it does. Agreed that it might be confusing and unintuitive for people new to MongoEngine, but there's a good reason for it. If...
This is not an issue anymore - `test_doc.list_field = []` doesn't unset the list in the database: ``` In [3]: class Doc(Document): nums = ListField(IntField()) ...: In [4]: doc =...
@andrewsosa001 could you provide some code that reliably reproduces your issue?
Ah, thanks @andrewsosa001, that makes it clearer. Proof I have shown in https://github.com/MongoEngine/mongoengine/issues/267#issuecomment-264730194 is invalid then - it only worked because I was changing the value from an implicit `[]`...
Now, one last question we have to answer is *why* we expect an empty list to be stored in the database in the cases above. An argument can be made...
This is wonderfully put, thank you for taking the time to write it @gukoff ! I agree with all of your points. Clearly current implementation is already causing confusion, as...