def get_detail_view_name(model):
    """
    Given a model class, return the view name to use for URL relationships
    that refer to instances of the model.
    """
    return '%(model_name)s-detail' % {'app_label': model._meta.app_label,
        'model_name': model._meta.object_name.lower()}
