mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 08:52:16 +02:00
Update load_senior_official_table.py
This commit is contained in:
parent
a7aa765566
commit
090f339215
1 changed files with 1 additions and 8 deletions
|
@ -110,14 +110,7 @@ class Command(BaseCommand):
|
|||
|
||||
# Bulk update the SO fields (if any)
|
||||
if len(updated_rows) > 0:
|
||||
updated_fields = [
|
||||
"first_name",
|
||||
"last_name",
|
||||
"title",
|
||||
"email",
|
||||
"phone",
|
||||
"federal_agency"
|
||||
]
|
||||
updated_fields = ["first_name", "last_name", "title", "email", "phone", "federal_agency"]
|
||||
SeniorOfficial.objects.bulk_update(updated_rows, updated_fields)
|
||||
|
||||
skipped_message = f"Updated {len(updated_rows)} records"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue