From 9f09717f3f0c9f53171516402eefafc5dbdc35c9 Mon Sep 17 00:00:00 2001 From: matteotolloso Date: Thu, 9 Nov 2023 22:35:57 +0100 Subject: [PATCH] bugfix --- smartreport_app/serializers.py | 1 + smartreport_app/urls.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/smartreport_app/serializers.py b/smartreport_app/serializers.py index 55acac0..01ef545 100644 --- a/smartreport_app/serializers.py +++ b/smartreport_app/serializers.py @@ -59,6 +59,7 @@ class Meta: def to_representation(self, instance): data = super().to_representation(instance) + data['id'] = str(data['id']) data['allowed_charts'] = [chart['plot_name'] for chart in data['allowed_charts']] return data diff --git a/smartreport_app/urls.py b/smartreport_app/urls.py index f84db3f..d852e57 100644 --- a/smartreport_app/urls.py +++ b/smartreport_app/urls.py @@ -15,5 +15,5 @@ # The API URLs are now determined automatically by the router. urlpatterns = [ path('', include(router.urls)), - path('kpi-data', views.kpi_data) + path('kpi-data/', views.kpi_data) ] \ No newline at end of file