fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ad hoc changes
[redakcja.git]
/
src
/
documents
/
management
/
commands
/
insert_isbn.py
diff --git
a/src/documents/management/commands/insert_isbn.py
b/src/documents/management/commands/insert_isbn.py
index
536d30f
..
15104d7
100644
(file)
--- a/
src/documents/management/commands/insert_isbn.py
+++ b/
src/documents/management/commands/insert_isbn.py
@@
-62,7
+62,7
@@
class Command(BaseCommand):
for slug, isbn_list in isbn_lists.iteritems():
print('processing %s' % slug)
for slug, isbn_list in isbn_lists.iteritems():
print('processing %s' % slug)
- book = Book.objects.get(
dc_slug
=slug)
+ book = Book.objects.get(
catalogue_book_id
=slug)
chunk = book.chunk_set.first()
old_head = chunk.head
src = old_head.materialize()
chunk = book.chunk_set.first()
old_head = chunk.head
src = old_head.materialize()