1
0
Fork 0

forceReload prevents ajax submission

...instead of weird hacky workarounds forcing refreshes later.
This commit is contained in:
Hugh Rundle 2021-11-25 19:12:03 +11:00
parent b91915d316
commit 5b67226571
No known key found for this signature in database
GPG key ID: CD23D6039184286B
4 changed files with 1 additions and 15 deletions

View file

@ -102,8 +102,6 @@ class ReadingStatus(View):
!= desired_shelf.identifier
):
return unshelve(request, referer=referer, book_id=book_id)
# don't try to unshelve a read status shelf: it has already been deleted.
return HttpResponse(headers={"forceReload": "true"})
if is_api_request(request):
return HttpResponse()