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

@ -29,6 +29,7 @@ class ReadingStatus(View):
"want": "want.html",
"start": "start.html",
"finish": "finish.html",
"stop": "stop.html",
}.get(status)
if not template:
return HttpResponseNotFound()
@ -41,6 +42,7 @@ class ReadingStatus(View):
"want": models.Shelf.TO_READ,
"start": models.Shelf.READING,
"finish": models.Shelf.READ_FINISHED,
"stop": models.Shelf.PARTIALLY_READ,
}.get(status)
if not identifier:
return HttpResponseBadRequest()