From e8021b93022cd0ab8ea6853c7e6e54fed41bf893 Mon Sep 17 00:00:00 2001 From: qinghu762-afk Date: Mon, 14 Sep 2026 14:50:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/wl_advisor_model.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/model/wl_advisor_model.py b/model/wl_advisor_model.py index fca0165..d9e5c31 100644 --- a/model/wl_advisor_model.py +++ b/model/wl_advisor_model.py @@ -22,8 +22,7 @@ class Advisor(Base): adv_region = Column(String(64), comment="负责区域/招生渠道") is_deleted = Column(SmallInteger,nullable=False, default=0,server_default="0", index=True,comment="1=已删除",) -#下面的内容临时注释,在main导入时,SQLAlchemy 在配置映射时就会报错,错误大概是:ArgumentError: Could not locate any relevant foreign key columns for primary join condition ... - # students = relationship("Student",primaryjoin="and_(Advisor.id == stu_id, Student.is_deleted == 0)", - # foreign_keys="stu_id",viewonly=True,lazy="selectin",) + +