MongoEngine/mongoengine

Changes from clear() on ListField are not saved

joek-makewave opened this issue · 0 comments

class MyDoc(Document):
    things = ListField(StringField())

If I get hold of a document with some things and do

doc.things.clear()
doc.save()

things will not be emptied. If I do

doc.things = []
doc.save()

things is emptied.