Skip to content

Commit

Permalink
refactor: Update LocationCollectionSerializer to include 'features' f…
Browse files Browse the repository at this point in the history
…ield
  • Loading branch information
manuGil committed Jul 5, 2024
1 parent 98f59dd commit 2444ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion citizenvoice/apiapp/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2444ea6

Please sign in to comment.