def get_old_name(request):
    """
    Returns the old name of the label when edited

    :param request: incomming request
    :return: old name of the label (String)
    """
    if('name' in request.json['changes']):
        return request.json['changes']['name']['from']