Skip to content

Commit

Permalink
Fixes #11659: Include all relevant DataFile attributes during bulk up…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
jeremystretch committed Feb 20, 2023
1 parent 0be633d commit 6641322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/core/models/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def sync(self):
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
Expand Down

0 comments on commit 6641322

Please sign in to comment.