From a4522fc661ad33808085c09572436d61f0d7c096 Mon Sep 17 00:00:00 2001 From: julio Date: Thu, 23 May 2024 19:39:00 +0200 Subject: [PATCH] news id as string for ios compatibility --- api/serializers/news.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/serializers/news.py b/api/serializers/news.py index e79b5bb..388e7ed 100644 --- a/api/serializers/news.py +++ b/api/serializers/news.py @@ -5,6 +5,7 @@ class NewsSerializer(serializers.ModelSerializer): banner_image = serializers.StringRelatedField(source="banner_image.name") + id = serializers.StringRelatedField() class Meta: model = News