def alias_field(model, field):
    """
    Return the prefix name of a field
    """
    for part in field.split(LOOKUP_SEP)[:-1]:
        model = associate_model(model,part)
    return model.__name__ + "-" + field.split(LOOKUP_SEP)[-1]