Skip to content

Commit

Permalink
API: Include version name in root
Browse files Browse the repository at this point in the history
  • Loading branch information
tienne-B committed Sep 8, 2024
1 parent b816b15 commit 8384183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tabbycat/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class RootLinksSerializer(serializers.Serializer):
_links = RootLinksSerializer(source='*', read_only=True)
timezone = serializers.CharField(allow_blank=False, read_only=True)
version = serializers.CharField()
version_name = serializers.CharField()


class V1RootSerializer(serializers.Serializer):
Expand Down
1 change: 1 addition & 0 deletions tabbycat/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def get(self, request, format=None):
},
"timezone": settings.TIME_ZONE,
"version": settings.TABBYCAT_VERSION,
"version_name": settings.TABBYCAT_CODENAME,
})


Expand Down

0 comments on commit 8384183

Please sign in to comment.