X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/3268c2681874b53c1a9fbda5f7ab1388d62226b4..ecf1bb43a75eeacf9dbec78fd6f5a1d3d526dbd8:/catalogue/publish.py?ds=sidebyside 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):