X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ec5b493bff5efa683aadf5f78aa891eff3550156..a762ebd5cfcee80c43074973566c84f7a1cab0c6:/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."""