From 9f4992785c13f934d089e8635a70137cd711e1cc Mon Sep 17 00:00:00 2001 From: Tero Virtanen <105207219+terovirtanen@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:34:28 +0200 Subject: [PATCH] fix: readiness jsonresponse Co-authored-by: Juha Louhiranta --- open_city_profile/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open_city_profile/urls.py b/open_city_profile/urls.py index 6a573b68..a28d7dbf 100644 --- a/open_city_profile/urls.py +++ b/open_city_profile/urls.py @@ -57,7 +57,7 @@ def readiness(*args, **kwargs): "commitHash": settings.COMMIT_HASH, "buildTime": settings.APP_BUILD_TIME.strftime("%Y-%m-%dT%H:%M:%S.000Z"), } - return HttpResponse(json.dumps(response_json), status=200) + return JsonResponse(response_json, status=200) urlpatterns += [path("healthz", healthz), path("readiness", readiness)]