From 99bfdeb7752fb3ad2172b7484e3b0ec75600a9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mih=C3=A1lik?= Date: Sat, 9 Dec 2023 23:51:43 +0100 Subject: [PATCH] Added series id to semester list endpoint --- competition/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/competition/serializers.py b/competition/serializers.py index eb555030..18592ed1 100644 --- a/competition/serializers.py +++ b/competition/serializers.py @@ -225,7 +225,7 @@ class SeriesSerializer(serializers.ModelSerializer): class Meta: model = models.Series read_only_fields = ['complete'] - fields = ['semester', 'order', 'deadline', 'complete'] + fields = ['id', 'semester', 'order', 'deadline', 'complete'] def get_complete(self, obj: models.Series): return obj.complete