

def update(self, **kwargs):
    for (key, item) in kwargs.items():
        try:
            setattr(self.document_instance, key, item)
        except AttributeError:
            pass
    kwargs.document_instance.save()

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/crud/models.py BaseAdminHQTabularCRUDManager.update/VarMisuse@53/59 `self`->`kwargs`