Skip to content

Commit

Permalink
Merge pull request #14 from SmartReports/dev
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
matteotolloso authored Nov 9, 2023
2 parents d46035a + 9f09717 commit bb91f80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions smartreport_app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion smartreport_app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]

0 comments on commit bb91f80

Please sign in to comment.