From 4c2d6c95b5df8881bc9ca664f3a30b6d8ad7c11b Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 18 Oct 2011 11:22:40 +0200 Subject: [PATCH] delete old xml check --- apps/catalogue/views.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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, -- 2.20.1