Add 'Partially Read' shelf
This commit is contained in:
parent
542957364c
commit
2b27889457
16 changed files with 116 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue