disambiguate groups and prep for group invitations
- rename Group to BookwyrmGroup - create group memberships and invitations - adjust all model name references accordingly
This commit is contained in:
@ -35,7 +35,7 @@ class List(OrderedCollectionMixin, BookWyrmModel):
|
||||
max_length=255, default="closed", choices=CurationType.choices
|
||||
)
|
||||
group = models.ForeignKey(
|
||||
"Group",
|
||||
"BookwyrmGroup",
|
||||
on_delete=models.PROTECT,
|
||||
default=None,
|
||||
blank=True,
|
||||
@ -101,6 +101,9 @@ class ListItem(CollectionItemMixin, BookWyrmModel):
|
||||
notification_type="ADD",
|
||||
)
|
||||
|
||||
# TODO: send a notification to all team members except the one who added the book
|
||||
# for team curated lists
|
||||
|
||||
class Meta:
|
||||
"""A book may only be placed into a list once,
|
||||
and each order in the list may be used only once"""
|
||||
|
Reference in New Issue
Block a user