X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3e569a771ed8cb9ab7156425ff870dc9d33ef023..f94960707e13dc99bc497ac68427de6834d311fd:/apps/catalogue/management/commands/merge_books.py diff --git a/apps/catalogue/management/commands/merge_books.py b/apps/catalogue/management/commands/merge_books.py index 62f8381e..82bd622d 100644 --- a/apps/catalogue/management/commands/merge_books.py +++ b/apps/catalogue/management/commands/merge_books.py @@ -8,7 +8,6 @@ from django.core.management.base import BaseCommand from django.core.management.color import color_style from django.db import transaction -from fnpdjango.utils.text.slughifi import slughifi from catalogue.models import Book @@ -127,9 +126,7 @@ class Command(BaseCommand): return # Start transaction management. - transaction.commit_unless_managed() transaction.enter_transaction_management() - transaction.managed(True) books = [Book.objects.get(slug=slug) for slug in slugs] common_slug = common_prefix(slugs)