petra-tool / backend / app / backend.py
backend.py
Raw
from app import app, db
from app.models import *


# configuration for cmd "flask shell"
@app.shell_context_processor
def make_shell_context():
    return {'db': db,
            'User': User,
            'Role': Role,
            'Team': Team,
            'Cycle': Cycle,
            'Milestone': Milestone,
            'Purpose': Purpose,
            'Lens': Lens,
            'Attachment': Attachment,
            'Label': Label,
            'Phase': Phase,
            'Matrix': Matrix,
            'Task': Task,
            'Status': Status,
            'Settings': Settings}