User ordered collection subtype for shelves
This commit is contained in:
parent
e61d8b7638
commit
f42a5444e5
4 changed files with 14 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue