1
0
Fork 0

Add 'Partially Read' shelf

This commit is contained in:
Thomas Versteeg 2022-02-11 14:33:46 +01:00
parent 542957364c
commit 2b27889457
16 changed files with 116 additions and 4 deletions

View file

@ -17,8 +17,9 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
TO_READ = "to-read"
READING = "reading"
READ_FINISHED = "read"
PARTIALLY_READ = "partially-read"
READ_STATUS_IDENTIFIERS = (TO_READ, READING, READ_FINISHED)
READ_STATUS_IDENTIFIERS = (TO_READ, READING, READ_FINISHED, PARTIALLY_READ)
name = fields.CharField(max_length=100)
identifier = models.CharField(max_length=100)

View file

@ -265,7 +265,7 @@ class GeneratedNote(Status):
ReadingStatusChoices = models.TextChoices(
"ReadingStatusChoices", ["to-read", "reading", "read"]
"ReadingStatusChoices", ["to-read", "reading", "read", "partially-read"]
)

View file

@ -372,6 +372,10 @@ class User(OrderedCollectionPageMixin, AbstractUser):
"name": "Read",
"identifier": "read",
},
{
"name": "Partially Read",
"identifier": "partially-read",
},
]
for shelf in shelves: