def get_unique_field_names(model):
    """
    Return all of the fields with "unique=True" for the model
    """
    fields = []
    for field in model._meta.fields:
        if field.unique:
            fields.append(field.name)
    return fields
