Skip to content

Commit

Permalink
feat: serialize featured image ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ngurenyaga committed Nov 22, 2021
1 parent 71810ff commit 1b10959
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mycarehub/content/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def to_representation(self, val):
for value in val.all():
media.append(
{
"id": value.featured_media.id,
"url": value.featured_media.file.url,
"title": value.featured_media.title,
"type": value.featured_media.type,
Expand Down

0 comments on commit 1b10959

Please sign in to comment.