From 14c5446ca0fb4127c37330574e693681ebc7380e Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Thu, 11 Dec 2025 16:57:26 +0000 Subject: [PATCH] fix: Avoid double transactions when cloning segments --- api/segments/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/segments/models.py b/api/segments/models.py index 89966e97f818..2166ea42a6a4 100644 --- a/api/segments/models.py +++ b/api/segments/models.py @@ -147,7 +147,6 @@ def set_version_of_to_self_if_none(self): # type: ignore[no-untyped-def] self.version_of = self self.save_without_historical_record() - @transaction.atomic def clone(self, is_revision: bool = False, **extra_attrs: typing.Any) -> "Segment": """ Create a revision of the segment