X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4b30aa4337497a5b225527900d67868912d3715e..3fe137045c9711462e0e37d0ba929070fe8359ef:/src/catalogue/models/book.py diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index 69d71aef2..3715e7b98 100644 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -136,6 +136,9 @@ class Book(models.Model): others = '' return ', '.join(u'\xa0'.join(reversed(translator.split(', ', 1))) for translator in translators) + others + def cover_source(self): + return self.extra_info.get('cover_source', self.parent.cover_source() if self.parent else '') + def save(self, force_insert=False, force_update=False, **kwargs): from sortify import sortify