mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Make Corpus model available in flask shell.
This commit is contained in:
parent
46b8550c65
commit
4ec0acc080
@ -1,5 +1,5 @@
|
||||
from app import create_app, db
|
||||
from app.models import User, Role, Permission, Job
|
||||
from app.models import Corpus, User, Role, Permission, Job
|
||||
from flask_migrate import Migrate
|
||||
import os
|
||||
|
||||
@ -10,7 +10,7 @@ migrate = Migrate(app, db)
|
||||
|
||||
@app.shell_context_processor
|
||||
def make_shell_context():
|
||||
return dict(db=db, User=User, Role=Role, Permission=Permission, Job=Job)
|
||||
return dict(db=db, Corpus=Corpus, User=User, Role=Role, Permission=Permission, Job=Job)
|
||||
|
||||
|
||||
@app.cli.command()
|
||||
|
Loading…
Reference in New Issue
Block a user