X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/3268c2681874b53c1a9fbda5f7ab1388d62226b4..985a407d3afd4dae71a362116a2d8bd91fe6babd:/catalogue/publish.py diff --git a/catalogue/publish.py b/catalogue/publish.py index f79a809..9f79dae 100755 --- a/catalogue/publish.py +++ b/catalogue/publish.py @@ -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):