Creates Privacy field that handles setting to/cc
This commit is contained in:
parent
c470aeb3ce
commit
b6907f39e9
5 changed files with 70 additions and 49 deletions
|
@ -4,7 +4,7 @@ from django.db import models
|
|||
|
||||
from bookwyrm import activitypub
|
||||
from .base_model import BookWyrmModel
|
||||
from .base_model import OrderedCollectionMixin, PrivacyLevels
|
||||
from .base_model import OrderedCollectionMixin
|
||||
from . import fields
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
|
|||
privacy = fields.CharField(
|
||||
max_length=255,
|
||||
default='public',
|
||||
choices=PrivacyLevels.choices
|
||||
choices=fields.PrivacyLevels.choices
|
||||
)
|
||||
books = models.ManyToManyField(
|
||||
'Edition',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue