def obj_delete(self, bundle, request=None, **kwargs):
        # this try/except logging is more helpful than 500 / 404 errors on
        # the client side
        request = request or bundle.request

        try:
            permanent = request.REQUEST.get('permanent', False)
            # permanent = request._request.dicts[1].get("permanent", False)
            # pull the id out of the request's path
            obj_id = self._id_from_uri(request.path)
            obj = self.model.objects.get(id=obj_id)
            bundle.obj = obj
            self.authorized_delete_detail([obj], bundle)
            obj.delete(user=request.user, permanent=permanent)
        except Exception:  # pragma: no cover
            logger.exception("error deleting %s", request.path)  # pragma: no cover
            raise
Testing FileAttachmentReviewUI sandboxes serialize_comment
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/mtapi.py/MTResource.obj_delete--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/ui/tests.py/SandboxTests.test_serialize_comment