User ordered collection subtype for shelves
This commit is contained in:
@ -229,6 +229,7 @@ class OrderedCollectionPageMixin(ActivitypubMixin):
|
||||
serializer = self.activity_serializer
|
||||
# a dict from the model fields
|
||||
activity = generate_activity(self)
|
||||
|
||||
if remote_id:
|
||||
activity['id'] = remote_id
|
||||
|
||||
|
@ -23,6 +23,8 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
|
||||
through_fields=('shelf', 'book')
|
||||
)
|
||||
|
||||
activity_serializer = activitypub.Shelf
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
''' set the identifier '''
|
||||
saved = super().save(*args, **kwargs)
|
||||
|
Reference in New Issue
Block a user