mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fixes #11659: Include all relevant DataFile attributes during bulk update
This commit is contained in:
parent
0be633d624
commit
664132281e
@ -168,7 +168,7 @@ class DataSource(PrimaryModel):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Bulk update modified files
|
# Bulk update modified files
|
||||||
updated_count = DataFile.objects.bulk_update(updated_files, ['hash'])
|
updated_count = DataFile.objects.bulk_update(updated_files, ('last_updated', 'size', 'hash', 'data'))
|
||||||
logger.debug(f"Updated {updated_count} files")
|
logger.debug(f"Updated {updated_count} files")
|
||||||
|
|
||||||
# Bulk delete deleted files
|
# Bulk delete deleted files
|
||||||
|
Loading…
Reference in New Issue
Block a user