Skip to content

Commit 25ec33c

Browse files
committed
Fixes #11659: Include all relevant DataFile attributes during bulk update
1 parent bd4774a commit 25ec33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/core/models/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def sync(self):
168168
continue
169169

170170
# Bulk update modified files
171-
updated_count = DataFile.objects.bulk_update(updated_files, ['hash'])
171+
updated_count = DataFile.objects.bulk_update(updated_files, ('last_updated', 'size', 'hash', 'data'))
172172
logger.debug(f"Updated {updated_count} files")
173173

174174
# Bulk delete deleted files

0 commit comments

Comments
 (0)