mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-09 16:55:29 +00:00
Fixes bug in alt text breaing serializing work
This commit is contained in:
parent
d024d44b79
commit
6149f36c7f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Book(ActivitypubMixin, BookWyrmModel):
|
||||||
def edition_info(self):
|
def edition_info(self):
|
||||||
''' properties of this edition, as a string '''
|
''' properties of this edition, as a string '''
|
||||||
items = [
|
items = [
|
||||||
self.physical_format,
|
self.physical_format if hasattr(self, 'physical_format') else None,
|
||||||
self.languages[0] + ' language' if self.languages and \
|
self.languages[0] + ' language' if self.languages and \
|
||||||
self.languages[0] != 'English' else None,
|
self.languages[0] != 'English' else None,
|
||||||
str(self.published_date.year) if self.published_date else None,
|
str(self.published_date.year) if self.published_date else None,
|
||||||
|
|
Loading…
Reference in a new issue