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