From c9cf59762a0e2181b587c711f582ee8863c416a1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 12 Feb 2020 14:47:48 -0600 Subject: [PATCH] Return package names as list, from "about" page from API so client knows in what order to display package versions --- tailbone/api/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tailbone/api/common.py b/tailbone/api/common.py index e8e297f3..7af46bf3 100644 --- a/tailbone/api/common.py +++ b/tailbone/api/common.py @@ -54,10 +54,12 @@ class CommonView(APIView): """ Generic view to show "about project" info page. """ + packages = self.get_packages() return { 'project_title': self.get_project_title(), 'project_version': self.get_project_version(), - 'packages': self.get_packages(), + 'packages': packages, + 'package_names': list(packages), } def get_project_title(self):