Changes from clear() on ListField are not saved
joek-makewave opened this issue · 0 comments
joek-makewave commented
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.