'Given a ``Bundle`` or an object (typically a ``Model`` instance),
it returns the extra kwargs needed to generate a detail URI.
By default, it uses this resource\'s ``detail_uri_name`` in order to
create the URI.'

def detail_uri_kwargs(self, bundle_or_obj):

    kwargs = {}
    if isinstance(bundle_or_obj, Bundle):
        bundle_or_obj = bundle_or_obj.obj
    kwargs[self._meta.detail_uri_name] = getattr(bundle_or_obj, self._meta.detail_uri_name)
    return kwargs
