def get_system_name(allowed_model, name) ->str:
    """Gets the system name of the Custom Field """
    if allowed_model is None:
        allowed_model = 'all'
    else:
        allowed_model = str(allowed_model.model).replace(' ', '')
    name = name.replace(' ', '').lower()
    system_name = '{namespace}:{name}'.format(namespace=allowed_model, name
        =name)
    return system_name
