Add HarvestProject.deleted flag to track deletions in Harvest

set this flag instead of deleting project, so we do not lose other
info about it.  can delete manually if truly unwanted
This commit is contained in:
Lance Edgar 2022-01-30 12:14:42 -06:00
parent 259d3b0f33
commit 3883a8551f
3 changed files with 62 additions and 0 deletions

View file

@ -190,6 +190,10 @@ class HarvestProject(model.Base):
updated_at = sa.Column(sa.DateTime(), nullable=True)
deleted = sa.Column(sa.Boolean(), nullable=True, doc="""
Flag indicating the record has been deleted in Harvest.
""")
def __str__(self):
return self.name or ''