mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
fix script
This commit is contained in:
parent
212d2002e3
commit
a976171179
4 changed files with 25 additions and 14 deletions
|
@ -49,6 +49,7 @@ class ScriptDataHelper:
|
|||
Usage:
|
||||
bulk_update_fields(Domain, page.object_list, ["first_ready"])
|
||||
"""
|
||||
logger.info(f"{TerminalColors.YELLOW} Bulk updating fields... {TerminalColors.ENDC}")
|
||||
# Create a Paginator object. Bulk_update on the full dataset
|
||||
# is too memory intensive for our current app config, so we can chunk this data instead.
|
||||
paginator = Paginator(update_list, batch_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue