diff --git a/oml/item/models.py b/oml/item/models.py index a5fe954..8145bd6 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -228,6 +228,7 @@ class Item(db.Model): def delete(self, commit=True): Sort.query.filter_by(item_id=self.id).delete() Transfer.query.filter_by(item_id=self.id).delete() + Scrape.query.filter_by(item_id=self.id).delete() state.db.session.delete(self) if commit: state.db.session.commit()