Allow for assignment to submissions filtered by having an attachment
[edumed.git] / catalogue / publish.py
index f79a809..9f79dae 100755 (executable)
@@ -3,6 +3,7 @@ from django.core.files.base import ContentFile
 from django.core.files import File
 from librarian import DocProvider, IOFile
 from librarian.pyhtml import EduModuleFormat
+from librarian.pypdf import EduModulePDFFormat
 from .models import Lesson, Attachment
 
 
@@ -60,6 +61,9 @@ class HtmlFormat(EduModuleFormat):
             att.file.save(att_name, ContentFile(tempfile.getvalue()))
         return att.file.url
 
+class PdfFormat(EduModulePDFFormat):
+    pass
+
 
 class OrmDocProvider(DocProvider):
     def by_slug(self, slug):