X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3604839194c368450c7bd3b96d74277f84d524a6..15e6c9027a47700418d9b80bdfac488529f09e4d:/apps/catalogue/views.py?ds=sidebyside diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index b2727747..0e7dff35 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -35,7 +35,7 @@ from librarian.document import Document as SST from librarian.formats.html import HtmlFormat from librarian.formats.pdf import PdfFormat from librarian.formats.epub import EpubFormat -from redakcja.utlis import send_notify_email +from redakcja.utils import send_notify_email from .constants import STAGES from .models import Document, Plan from dvcs.models import Revision @@ -242,6 +242,7 @@ def book_pdf(request, pk, rev_pk): ctx = Context( files_path='http://%s/media/dynamic/uploads/%s/' % (request.get_host(), pk), source_url='http://%s%s' % (request.get_host(), reverse('catalogue_html', args=[doc.pk])), + organization=doc.owner_organization.name if doc.owner_organization else doc.owner_user.get_full_name(), ) if doc.owner_organization is not None and doc.owner_organization.logo: ctx.cover_logo = 'http://%s%s' % (request.get_host(), doc.owner_organization.logo.url)