'Kit item has been deleted => update totals of the kit'

@staticmethod
def budget_kit_item_ondelete(row):

    db = current.db
    linktable = current.s3db.budget_kit_item
    try:
        record_id = row.id
    except:
        return
    link = db((linktable.id == record_id)).select(linktable.deleted_fk, limitby=(0, 1)).first()
    if link:
        deleted_fk = json.loads(link.deleted_fk)
        kit_id = deleted_fk.get('kit_id')
        if kit_id:
            budget_kit_totals(kit_id)
    return
