User p tags for pure status serializer
This commit is contained in:
parent
40c4f4f5de
commit
80de6079fa
4 changed files with 197 additions and 29 deletions
|
@ -73,7 +73,10 @@ class Book(ActivitypubMixin, BookWyrmModel):
|
|||
@property
|
||||
def alt_text(self):
|
||||
''' image alt test '''
|
||||
return '%s cover (%s)' % (self.title, self.edition_info)
|
||||
text = '%s cover' % self.title
|
||||
if self.edition_info:
|
||||
text += ' (%s)' % self.edition_info
|
||||
return text
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
''' can't be abstract for query reasons, but you shouldn't USE it '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue