X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/51ea493dd4c46246c80ed3190b43ebfc0d75d67c..0f2ac86f03177aebee66a3890120d9926272cf27:/src/documents/models/book.py 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)