Closed inlinestyle closed 9 years ago
A model instance update of the form
car = Car() car.update(maker='porsche')
raises a ValueError due to a dangling comma in Document.update
ValueError
Document.update
See https://github.com/gamechanger/mongothon/blob/6c91cb3a652675fc0de6d679e6836643616b07ca/mongothon/document.py#L23
Single-character kwargs actually work fine since they get unpacked into a length-1 tuple.
tuple
Merged fix, closing
A model instance update of the form
raises a
ValueError
due to a dangling comma inDocument.update
See https://github.com/gamechanger/mongothon/blob/6c91cb3a652675fc0de6d679e6836643616b07ca/mongothon/document.py#L23
Single-character kwargs actually work fine since they get unpacked into a length-1
tuple
.