fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
top align in tables
[redakcja.git]
/
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
5499d3d
..
82bd622
100644
(file)
--- a/
apps/catalogue/management/commands/merge_books.py
+++ b/
apps/catalogue/management/commands/merge_books.py
@@
-126,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)