X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/51ea493dd4c46246c80ed3190b43ebfc0d75d67c..049c5959e33d29e4c0044c235d291144d49d3c45:/src/documents/models/book.py?ds=inline 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)