def delete_url_link(obj, **kwargs):
    """This method assumes that the "get_delete_url_link" method has been
    implemented on the obj.
    """
    if hasattr(obj, 'get_delete_url_link'):
        return obj.get_delete_url_link(**kwargs)

    delete_url = obj.get_delete_url()
    return build_link(href=delete_url, **kwargs)
This method assumes that the "get_delete_url_link" method has been
    implemented on the obj.