@json_view(permission='edit_tender')
    def delete(self):
        tender = self.request.validated['tender']
        if tender.status not in ['active.enquiries']:
            self.request.errors.add('body', 'data', 'Can\'t delete lot in current ({}) tender status'.format(tender.status))
            self.request.errors.status = 403
            return
        lot = self.request.context
        res = lot.serialize("view")
        tender.lots.remove(lot)
        if save_tender(self.request):
            self.LOGGER.info('Deleted tender lot {}'.format(self.request.context.id),
                        extra=context_unpack(self.request, {'MESSAGE_ID': 'tender_lot_delete'}))
            return {'data': res}
addModule(module: Module, moduleBrush: QBrush) -> QGraphicsModuleItem
dataset/ETHPy150Open openprocurement/openprocurement.api/src/openprocurement/api/views/lot.py/TenderLotResource.delete--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/pipeline_view.py/QPipelineScene.addModule