From: Radek Czajka Date: Tue, 4 Oct 2011 15:00:34 +0000 (+0200) Subject: fixes X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/bd743f7ae0f46d0d2a68f80e3c3cf14313d61aa3 fixes --- diff --git a/apps/catalogue/management/commands/merge_books.py b/apps/catalogue/management/commands/merge_books.py index 00014dfd..aec113ed 100755 --- a/apps/catalogue/management/commands/merge_books.py +++ b/apps/catalogue/management/commands/merge_books.py @@ -111,8 +111,8 @@ class Command(BaseCommand): force = options.get('force') guess = options.get('guess') dry_run = options.get('dry_run') - new_slug = options.get('new_slug') - new_title = options.get('new_title') + new_slug = options.get('new_slug').decode('utf-8') + new_title = options.get('new_title').decode('utf-8') verbose = options.get('verbose') if guess: diff --git a/apps/catalogue/models/book.py b/apps/catalogue/models/book.py index 9f809b86..1b043a47 100755 --- a/apps/catalogue/models/book.py +++ b/apps/catalogue/models/book.py @@ -278,6 +278,8 @@ class Book(models.Model): """ Publishes a book on behalf of a (local) user. """ + raise NotImplementedError("Publishing not possible yet.") + from apiclient import api_call changes = self.get_current_changes(publishable=True) diff --git a/apps/catalogue/templates/catalogue/book_detail.html b/apps/catalogue/templates/catalogue/book_detail.html index b93fce45..8e9c1f10 100755 --- a/apps/catalogue/templates/catalogue/book_detail.html +++ b/apps/catalogue/templates/catalogue/book_detail.html @@ -79,6 +79,8 @@ {% endcomment %}

+ {% trans "This book cannot be published yet" %} + {% comment %}