Skip to content

Commit

Permalink
PublishedProjectDetailSerializer: add license field.
Browse files Browse the repository at this point in the history
In the REST API at /api/v1/project/published/SLUG/VERSION/, add the
license name (the same way as in /api/v1/project/published/.)
  • Loading branch information
Benjamin Moody committed Oct 1, 2024
1 parent 124446c commit 1df8988
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions physionet-django/export/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ class Meta:


class PublishedProjectDetailSerializer(serializers.ModelSerializer):
license = LicenseSerializer()

class Meta:
model = PublishedProject
fields = (
'slug',
'title',
'version',
'abstract',
'license',
'short_description',
'project_home_page',
'publish_datetime',
Expand Down

0 comments on commit 1df8988

Please sign in to comment.