Document.update
doesn't allow updates with InnerDoc
#1535
Labels
Category: Bug
Something isn't right
For example:
then it will raise the following error
InnerDoc
inherits fromAttrDict
, andmerge
method acceptsAttrDict
to be merged, the problem is that not allAttrDict
subclasses implement a dict-like interface for iterate, such asInnerDoc
I think, its better to first convert
AttrDict
to dict inmerge
method to make it iterable. After this fix, doc creation & update can both acceptInnerDoc
.The text was updated successfully, but these errors were encountered: