From 2444ea66a2e6c3ec83248111b1ebd198446a0013 Mon Sep 17 00:00:00 2001 From: Manuel Garcia Date: Fri, 5 Jul 2024 06:58:54 +0200 Subject: [PATCH] refactor: Update LocationCollectionSerializer to include 'features' field --- citizenvoice/apiapp/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citizenvoice/apiapp/serializers.py b/citizenvoice/apiapp/serializers.py index 2a069c18..86502305 100644 --- a/citizenvoice/apiapp/serializers.py +++ b/citizenvoice/apiapp/serializers.py @@ -169,7 +169,7 @@ class Meta: model = LocationCollection fields = ('id', 'url', 'name', 'description', 'features') read_only_fields = ('id', 'url') - + def get_features(self, obj): """ Returns a list of URLs of all the features (points, lines, polygons)