Seth0330 commited on
Commit
acecd0b
·
verified ·
1 Parent(s): 4f74be7

Update app/models/student.py

Browse files
Files changed (1) hide show
  1. app/models/student.py +3 -0
app/models/student.py CHANGED
@@ -23,4 +23,7 @@ class Student(Base):
23
 
24
  # Relationship to membership
25
  membership = relationship("Membership", back_populates="students")
 
 
 
26
 
 
23
 
24
  # Relationship to membership
25
  membership = relationship("Membership", back_populates="students")
26
+
27
+ # Relationship to comments
28
+ comments = relationship("StudentComment", back_populates="student", cascade="all, delete-orphan")
29