From 594930a0723314b1d76f5128638ed42ec31c9493 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 13 Feb 2013 15:52:09 +0100 Subject: [PATCH] material needs format --- catalogue/publish.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/catalogue/publish.py b/catalogue/publish.py index bf215a6..87f4d90 100755 --- a/catalogue/publish.py +++ b/catalogue/publish.py @@ -6,13 +6,8 @@ from .models import Lesson, Attachment class HtmlFormat(EduModuleFormat): - def url_for_material(self, slug, fmt=None): + def url_for_material(self, slug, fmt): lesson_slug = self.wldoc.book_info.url.slug - if fmt is None: - # We could try and find the file by slug here, but we won't. - # User should supply the format explicitly anyway. - fmt = self.DEFAULT_MATERIAL_FORMAT - try: # If already saved, use it. att = Attachment.objects.get(lesson__slug=lesson_slug, -- 2.20.1