feat: barcode templates
This commit is contained in:
@ -17,7 +17,12 @@ class RepBaseMixin(Generic[EntityType]):
|
||||
|
||||
|
||||
class RepDeleteMixin(Generic[EntityType], RepBaseMixin[EntityType]):
|
||||
async def _before_delete(self, obj: EntityType) -> None:
|
||||
pass
|
||||
|
||||
async def delete(self, obj: EntityType, is_soft: bool) -> None:
|
||||
await self._before_delete(obj)
|
||||
|
||||
if not is_soft:
|
||||
await self.session.delete(obj)
|
||||
await self.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user