rancher incentive quota usage - pos product search

This commit is contained in:
2025-09-27 10:20:01 +03:30
parent b3d2da6036
commit 7cd5cd3f66
14 changed files with 121 additions and 46 deletions

View File

@@ -7,8 +7,9 @@ class SoftDeleteMixin:
""" override destroy -> soft delete """
instance = self.get_object() # noqa
print("soft delete mixin")
instance.soft_delete()
return Response(
{"detail": "رکورد با موفقیت حذف شد (Soft Delete)."}, # noqa
status=status.HTTP_200_OK
status=status.HTTP_204_NO_CONTENT
)