def transform_resource_name(ctx, param, value):
    if value is not None:
        return value.title()
    return value
Ensure that the given related item is actually for the model
dataset/ETHPy150Open dropbox/pynsot/pynsot/commands/callbacks.py/transform_resource_name--crossover with--dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/generic/fields.py/BaseGenericRelation._related_items_changed