From abfb7bf448ae688fa64ab81dc1287c3dccfe5f6a Mon Sep 17 00:00:00 2001 From: 0919word <835535015@qq.com> Date: Tue, 22 Sep 2026 10:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=92=8B=E7=AB=8B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PythonProject/model/all_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonProject/model/all_model.py b/PythonProject/model/all_model.py index 4c96f84..91e93f7 100644 --- a/PythonProject/model/all_model.py +++ b/PythonProject/model/all_model.py @@ -11,7 +11,7 @@ class Student_Model(Base): ,comment='学生编号') class_id = Column(Integer - ,ForeignKey('wl_class.class_id') + ,ForeignKey('wl_class.class_id', ondelete='CASCADE') ,comment='班级编号' )