X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c58ede829174b66ec4d2b0c949b771a3eed27e1b..d8990e1ab64fe3bf453d06fab8e983d25f2df2c4:/apps/catalogue/models/book.py?ds=sidebyside diff --git a/apps/catalogue/models/book.py b/apps/catalogue/models/book.py index a426b08d..84c05dbd 100755 --- a/apps/catalogue/models/book.py +++ b/apps/catalogue/models/book.py @@ -439,3 +439,7 @@ class Book(models.Model): for c in changes: ChunkPublishRecord.objects.create(book_record=br, change=c) post_publish.send(sender=br) + + def latex_dir(self): + doc = self.wldocument() + return doc.latex_dir(cover=True, ilustr_path=self.gallery_path())