fix: don't override setstate (#29194)

Meta sometimes break because of this, I don't quite know why but this
change isn't that useful, so best to revert it for now.
This commit is contained in:
Ankush Menat 2025-01-16 15:50:47 +05:30 committed by GitHub
parent 9307ee8886
commit 9c2bd23606
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,11 +177,6 @@ class BaseDocument:
state.pop("meta", None)
state.pop("permitted_fieldnames", None)
state.pop("_parent_doc", None)
state.pop("flags", None)
def __setstate__(self, state):
self.__dict__ = state
self.flags = _dict()
def update(self, d):
"""Update multiple fields of a doctype using a dictionary of key-value pairs.