vivektweeny

Results 2 comments of vivektweeny

Hi, In the model definition add default value like this "users = fields.ListField(default=['text/html'])", it will set empty list [ ] at time of updating the document.

> ```python > import mongoengine > class TestDoc(mongoengine.Document): > list_field = mongoengine.ListField() > > mongoengine.connect('test') > test_doc = TestDoc.objects.create() > ``` > > After this operation, in spite of the...