def delete(self): db_session.delete(self) db_session.commit()
def delete(self): if (len(self.entries)) > 0: return False db_session.delete(self) db_session.commit()