Explorar el Código

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

jeremystretch hace 3 años
padre
commit
664132281e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/core/models/data.py

+ 1 - 1
netbox/core/models/data.py

@@ -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