You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fix] Populate Config.checksum_db field without modifying Config.status #1113
Bug:
Config.update_status_if_checksum_changed() sets the Config.status
to modified if the Config.checksum_db field is empty. In the migration
Config.checksum_db is empty, thus all Config.status is set to modified
to all devices.
Fix:
Use Config.objects.bulk_update() to populate the Config.checksum_db field.
It does not call save(), nor it sends pre_save and post_save signals.
Thus, it avoids any side-effects from the migration.
[skip changelog]
Related to #1113
0 commit comments