X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/51ea493dd4c46246c80ed3190b43ebfc0d75d67c..32ee10aaf4c035a199a96c06bd2506befed5e17f:/src/documents/models/book.py?ds=sidebyside diff --git a/src/documents/models/book.py b/src/documents/models/book.py index fa93eeb9..e7803890 100644 --- a/src/documents/models/book.py +++ b/src/documents/models/book.py @@ -478,8 +478,10 @@ class Book(models.Model): if self.project.logo_mono: data['logo_mono'] = urljoin( 'https://' + Site.objects.get_current().domain, - self.project.logo.url, + self.project.logo_mono.url, ) + if self.project.logo_alt: + data['logo_alt'] = self.project.logo_alt if host: data['gallery_url'] = host + self.gallery_url() apiclient.api_call(user, "books/", data, beta=beta)