Make inline progress form actually work

This commit is contained in:
Joel Bradshaw
2020-11-25 22:37:18 -08:00
parent e7c0368168
commit 090cf2aea7
4 changed files with 26 additions and 9 deletions

View File

@ -74,6 +74,10 @@ class Book(ActivitypubMixin, BookWyrmModel):
''' reference the work via local id not remote '''
return self.parent_work.remote_id
@property
def latest_readthrough(self):
return self.readthrough_set.order_by('-updated_date').first()
activity_mappings = [
ActivityMapping('id', 'remote_id'),