json serialize

This commit is contained in:
Administrator 2023-09-30 09:51:43 +03:00
parent 00ad51bb78
commit 43e8890d7f

View File

@ -57,4 +57,4 @@ def get_config(request):
config = Config.objects.filter(stage=stage, project__name=project, name=name).first() config = Config.objects.filter(stage=stage, project__name=project, name=name).first()
if config is None: if config is None:
return HttpResponse('', status=404) return HttpResponse('', status=404)
return JsonResponse(config.data) return JsonResponse(config.data, safe=False)