Merge branch 'main' into progress_update

This commit is contained in:
Joel Bradshaw
2021-01-17 12:59:53 -08:00
109 changed files with 5683 additions and 4458 deletions

View File

@ -182,7 +182,6 @@ class Edition(Book):
activity_serializer = activitypub.Edition
name_field = 'title'
@property
def get_rank(self):
''' calculate how complete the data is on this edition '''
if self.parent_work and self.parent_work.default_edition == self:
@ -208,7 +207,7 @@ class Edition(Book):
self.isbn_13 = isbn_10_to_13(self.isbn_10)
# set rank
self.edition_rank = self.get_rank
self.edition_rank = self.get_rank()
return super().save(*args, **kwargs)