X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..21cd47e315b2e86edeff93bac5d1eca5b5d2c428:/src/documents/management/commands/insert_isbn.py?ds=sidebyside diff --git a/src/documents/management/commands/insert_isbn.py b/src/documents/management/commands/insert_isbn.py index 536d30ff..15104d71 100644 --- 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) - 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()