archiving campaign

This commit is contained in:
Yisroel Baum 2024-09-22 15:07:15 +03:00
parent 45e9b3a9bc
commit 33cfbbcc9f
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@ class Campaign(db.Model):
title = Column('title', TEXT(), nullable=False)
active = Column('active', Boolean(), nullable=False, default=True)
goal = Column('goal', INTEGER(), default=0)
archived = Column('archived', Boolean(), default=False)
def get_donations(self):
from app.main.models import Donation