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