Skip to content

Commit

Permalink
do not cascade with removal of base_study (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent authored Nov 14, 2023
1 parent ece81ce commit 77d3ac4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions store/neurostore/models/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ class BaseStudy(BaseMixin, db.Model):
user = relationship("User", backref=backref("base_studies"))
# retrieve versions of same study
versions = relationship(
"Study", backref=backref("base_study"), cascade="all, delete-orphan"
)
"Study", backref=backref("base_study"))

def update_has_images_and_points(self):
# Calculate has_images and has_coordinates for the BaseStudy
Expand Down

0 comments on commit 77d3ac4

Please sign in to comment.