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
att.file.save(att_name, ContentFile(tempfile.getvalue()))
return att.file.url
+class PdfFormat(EduModulePDFFormat):
+ pass
+
class OrmDocProvider(DocProvider):
def by_slug(self, slug):