全局审计日fix: 使用鸭子类型强制安全解包 SQLAlchemy Row 对象,彻底解决 to_dict 报错志
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
# app/models/__init__.py
|
||||
|
||||
# 1. 基础物料 (必须先加载,因为 buy 依赖它)
|
||||
from app.models.base import MaterialBase
|
||||
from app.models.base import MaterialBase, MaterialWarningSetting
|
||||
|
||||
# 2. 采购入库 (现在的类名是 StockBuy)
|
||||
from app.models.inbound.buy import StockBuy
|
||||
|
||||
Reference in New Issue
Block a user