From 3a7717e22f36846efe7d2b6ec329f302f93884c6 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 10 Sep 2021 08:59:18 -0700 Subject: [PATCH] Fixes status code variable in http response --- bookwyrm/views/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index 119842cb..0ead2d01 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -41,7 +41,7 @@ class CreateStatus(View): return HttpResponseBadRequest() if not form.is_valid(): if is_api_request(request): - return HttpResponse(status_code=500) + return HttpResponse(status=500) return redirect(request.headers.get("Referer", "/")) status = form.save(commit=False)