'Update the block_data object based on it having been edited.'

def version_block(self, block_data, user_id, update_version):

    if (block_data.edit_info.update_version == update_version):
        return
    original_usage = block_data.edit_info.original_usage
    original_usage_version = block_data.edit_info.original_usage_version
    block_data.edit_info.edited_on = datetime.datetime.now(UTC)
    block_data.edit_info.edited_by = user_id
    block_data.edit_info.previous_version = block_data.edit_info.update_version
    block_data.edit_info.update_version = update_version
    if original_usage:
        block_data.edit_info.original_usage = original_usage
        block_data.edit_info.original_usage_version = original_usage_version
