mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 22:44:11 +02:00
Update create_federal_portfolio.py
This commit is contained in:
parent
b9dc928084
commit
6da172c028
1 changed files with 4 additions and 4 deletions
|
@ -108,7 +108,9 @@ class Command(BaseCommand):
|
||||||
TerminalHelper.prompt_for_execution(
|
TerminalHelper.prompt_for_execution(
|
||||||
system_exit_on_terminate=True,
|
system_exit_on_terminate=True,
|
||||||
prompt_message="This action will update domain requests even if they aren't on a portfolio.",
|
prompt_message="This action will update domain requests even if they aren't on a portfolio.",
|
||||||
prompt_title="Do you want to clear federal agency on (related) started domain requests?",
|
prompt_title=(
|
||||||
|
"POST PROCESS STEP: Do you want to clear federal agency on (related) started domain requests?"
|
||||||
|
),
|
||||||
verify_message=None,
|
verify_message=None,
|
||||||
)
|
)
|
||||||
self.post_process_started_domain_requests(agencies, portfolios)
|
self.post_process_started_domain_requests(agencies, portfolios)
|
||||||
|
@ -247,9 +249,7 @@ class Command(BaseCommand):
|
||||||
)
|
)
|
||||||
TerminalHelper.colorful_logger(logger.warning, TerminalColors.YELLOW, message)
|
TerminalHelper.colorful_logger(logger.warning, TerminalColors.YELLOW, message)
|
||||||
else:
|
else:
|
||||||
new_suborgs.append(
|
new_suborgs.append(Suborganization(name=name, portfolio=portfolio)) # type: ignore
|
||||||
Suborganization(name=name, portfolio=portfolio)
|
|
||||||
) # type: ignore
|
|
||||||
|
|
||||||
if new_suborgs:
|
if new_suborgs:
|
||||||
Suborganization.objects.bulk_create(new_suborgs)
|
Suborganization.objects.bulk_create(new_suborgs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue