X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ec5b493bff5efa683aadf5f78aa891eff3550156..dab276bc0a4bdb890d7a356db21abf40fe7311bb:/apps/dvcs/models.py diff --git a/apps/dvcs/models.py b/apps/dvcs/models.py index ec647946..e82ad193 100644 --- a/apps/dvcs/models.py +++ b/apps/dvcs/models.py @@ -329,7 +329,7 @@ class Document(models.Model): else: return None - @transaction.commit_on_success + @transaction.atomic def prepend_history(self, other): """Takes over the the other document's history and prepends to own."""