Skip to content

Commit

Permalink
news id as string for ios compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jbc25 committed May 23, 2024
1 parent fbb77bf commit a4522fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/serializers/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class NewsSerializer(serializers.ModelSerializer):
banner_image = serializers.StringRelatedField(source="banner_image.name")
id = serializers.StringRelatedField()

class Meta:
model = News
Expand Down

0 comments on commit a4522fc

Please sign in to comment.