from django.contrib.contenttypes.fields import GenericRelation
from django.template.loader import render_to_string
from django.urls import reverse
-from django.utils.translation import ugettext_lazy as _, get_language
+from django.utils.translation import gettext_lazy as _, get_language
from fnpdjango.storage import BofhFileSystemStorage
from lxml import html
from librarian.cover import WLCover
licenses.add(license)
readme = render_to_string('catalogue/audiobook_zip_readme.txt', {
'licenses': licenses,
+ 'meta': self.wldocument2().meta,
})
return create_zip(paths, "%s_%s" % (self.slug, format_), {'informacje.txt': readme})