def execute(self): old_new_values = OldNewValue.all() # onv = old new value for onv in old_new_values.values(): if onv.type == OldNewValue.SingleValue \ or onv.type == OldNewValue.Range: for cell in Cell.get_by_value(onv.old1): cell.data = onv.new