fix case mistake in seed script
This commit is contained in:
parent
cfe454be40
commit
2aea85b9c0
@ -41,7 +41,7 @@ portfolio_USERS = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
portfolio_INVITED_USERS = [
|
PORTFOLIO_INVITED_USERS = [
|
||||||
{
|
{
|
||||||
"first_name": "Frederick",
|
"first_name": "Frederick",
|
||||||
"last_name": "Fitzgerald",
|
"last_name": "Fitzgerald",
|
||||||
@ -115,7 +115,7 @@ def seed_db():
|
|||||||
db.session.refresh(ws_role)
|
db.session.refresh(ws_role)
|
||||||
PortfolioRoles.enable(ws_role)
|
PortfolioRoles.enable(ws_role)
|
||||||
|
|
||||||
for portfolio_role in portfolio_INVITED_USERS:
|
for portfolio_role in PORTFOLIO_INVITED_USERS:
|
||||||
ws_role = Portfolios.create_member(user, portfolio, portfolio_role)
|
ws_role = Portfolios.create_member(user, portfolio, portfolio_role)
|
||||||
invitation = InvitationFactory.build(portfolio_role=ws_role, status=portfolio_role["status"])
|
invitation = InvitationFactory.build(portfolio_role=ws_role, status=portfolio_role["status"])
|
||||||
db.session.add(invitation)
|
db.session.add(invitation)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user