1
0
Fork 0

code style

This commit is contained in:
Hugh Rundle 2021-11-20 16:06:16 +11:00
parent 12810d8e34
commit b273123708
No known key found for this signature in database
GPG key ID: CD23D6039184286B
5 changed files with 15 additions and 9 deletions

View file

@ -102,5 +102,5 @@ def unshelve(request, referer=None, book_id=False):
shelf_book.raise_not_deletable(request.user)
shelf_book.delete()
if bool(referer):
return HttpResponse(headers={"forceReload" : "true"})
return HttpResponse(headers={"forceReload": "true"})
return redirect(request.headers.get("Referer", "/"))