X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ec5b493bff5efa683aadf5f78aa891eff3550156..8690530da093fc9875def2ed479497211c215e5e:/apps/catalogue/management/__init__.py diff --git a/apps/catalogue/management/__init__.py b/apps/catalogue/management/__init__.py index f7731d72..bc3d6c02 100644 --- a/apps/catalogue/management/__init__.py +++ b/apps/catalogue/management/__init__.py @@ -100,9 +100,7 @@ class XmlUpdater(object): books = Book.objects.all() # Start transaction management. - transaction.commit_unless_managed() transaction.enter_transaction_management() - transaction.managed(True) for book in books: self.counters['All books'] += 1