def METHOD_NAME(x):
    if x.is_default: #If we are the default, we can't change to not default
        return x.tag
    elif user and user.is_admin():
        return make_edit_link(x.tag,x.id)
    else:  #no perms to edit
        return x.tag