

@property
def edit_button(self):
    doc_id = (self.document_instance.get_id if self.document_instance else '')
    return mark_safe(('<a href="#crud_update_modal"\n            class="btn btn-default"\n            data-item_id="%s"\n            onclick="crud_interface.update_item(this)"\n            data-toggle="modal"><i class="fa fa-pencil"></i> Edit</a>' % self))

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/crud/models.py BaseAdminHQTabularCRUDManager.edit_button/VarMisuse@35/116 `doc_id`->`self`