Makes shelbook user required
This commit is contained in:
parent
ee2b656b08
commit
ad7a045582
3 changed files with 53 additions and 17 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue