更新注释
This commit is contained in:
@@ -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",)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user