mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 21:16:28 +02:00
Update create_federal_portfolio.py
This commit is contained in:
parent
6808b4869a
commit
27871ee5e0
1 changed files with 1 additions and 3 deletions
|
@ -56,9 +56,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
def bulk_update(self, fields_to_update):
|
def bulk_update(self, fields_to_update):
|
||||||
try:
|
try:
|
||||||
res = ScriptDataHelper.bulk_update_fields(self.model_class, self.update, fields_to_update, quiet=True)
|
ScriptDataHelper.bulk_update_fields(self.model_class, self.update, fields_to_update, quiet=True)
|
||||||
self.update = res
|
|
||||||
return res
|
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
# In this case, just swap the fail and update lists
|
# In this case, just swap the fail and update lists
|
||||||
self.fail = self.update.copy()
|
self.fail = self.update.copy()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue