Makes shelbook user required

This commit is contained in:
Mouse Reeve
2021-02-07 11:29:13 -08:00
parent ee2b656b08
commit ad7a045582
3 changed files with 53 additions and 17 deletions

View File

@ -55,12 +55,7 @@ class ShelfBook(CollectionItemMixin, BookWyrmModel):
shelf = fields.ForeignKey(
'Shelf', on_delete=models.PROTECT, activitypub_field='target')
user = fields.ForeignKey(
'User',
blank=True,
null=True,
on_delete=models.PROTECT,
activitypub_field='actor'
)
'User', on_delete=models.PROTECT, activitypub_field='actor')
activity_serializer = activitypub.AddBook
object_field = 'book'