1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #11659: Include all relevant DataFile attributes during bulk update

This commit is contained in:
jeremystretch
2023-02-03 14:57:24 -05:00
parent 0be633d624
commit 664132281e

View File

@ -168,7 +168,7 @@ class DataSource(PrimaryModel):
continue
# 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")
# Bulk delete deleted files