def METHOD_NAME(self, obj, view_name, request, format):
    if hasattr(obj, 'pk') and obj.pk in (None, ''):
        return None
    kwargs = {'pk':obj.pk, 'slug':obj.editoritem.slug}
    return self.reverse(view_name, kwargs=kwargs, request=request, format=format)