mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +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(
|
||||
system_exit_on_terminate=True,
|
||||
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,
|
||||
)
|
||||
self.post_process_started_domain_requests(agencies, portfolios)
|
||||
|
@ -247,9 +249,7 @@ class Command(BaseCommand):
|
|||
)
|
||||
TerminalHelper.colorful_logger(logger.warning, TerminalColors.YELLOW, message)
|
||||
else:
|
||||
new_suborgs.append(
|
||||
Suborganization(name=name, portfolio=portfolio)
|
||||
) # type: ignore
|
||||
new_suborgs.append(Suborganization(name=name, portfolio=portfolio)) # type: ignore
|
||||
|
||||
if new_suborgs:
|
||||
Suborganization.objects.bulk_create(new_suborgs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue