Arthur 17 часов назад
Родитель
Сommit
ab46882dbc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/netbox/models/deletion.py

+ 1 - 1
netbox/netbox/models/deletion.py

@@ -131,7 +131,7 @@ class CustomCollector(Collector):
         # recorded and precedes the DELETE. Django nulls a SET_NULL column with a bulk UPDATE,
         # which emits no post_save and so is never change-logged. Models opt in by defining
         # clear_cached_references(); cascaded objects reach this the same as explicit deletions.
-        with transaction.atomic(using=self.using):
+        with transaction.atomic(using=self.using, savepoint=False):
             for model, instances in self.data.items():
                 if clear_references := getattr(model, 'clear_cached_references', None):
                     clear_references(instances, self)