X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/add48c78bc4b08dfda50b0c0ccb6be188c7d56f4..4d106a6318aa0c508a93acb9e2a6fb146ed177ba:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index b6e4c400..6fb5f60b 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -242,18 +242,9 @@ def book(request, slug): editable = False task = publishable_error.delay(book) - publish_error = t.wait() + publish_error = task.wait() publishable = publish_error is None - try: - book.assert_publishable() - except AssertionError, e: - publishable = False - publishable_error = e - else: - publishable = True - publishable_error = None - return direct_to_template(request, "catalogue/book_detail.html", extra_context={ "book": book, "publishable": publishable,