mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +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):
|
||||
try:
|
||||
res = ScriptDataHelper.bulk_update_fields(self.model_class, self.update, fields_to_update, quiet=True)
|
||||
self.update = res
|
||||
return res
|
||||
ScriptDataHelper.bulk_update_fields(self.model_class, self.update, fields_to_update, quiet=True)
|
||||
except Exception as err:
|
||||
# In this case, just swap the fail and update lists
|
||||
self.fail = self.update.copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue