mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Removed legacy transaction management per the deprecation timeline.
This commit is contained in:
@@ -249,7 +249,7 @@ class Collector(object):
|
||||
# end of a transaction.
|
||||
self.sort()
|
||||
|
||||
with transaction.commit_on_success_unless_managed(using=self.using):
|
||||
with transaction.atomic(using=self.using, savepoint=False):
|
||||
# send pre_delete signals
|
||||
for model, obj in self.instances_with_model():
|
||||
if not model._meta.auto_created:
|
||||
|
||||
Reference in New Issue
Block a user