Return package names as list, from "about" page from API

so client knows in what order to display package versions
This commit is contained in:
Lance Edgar 2020-02-12 14:47:48 -06:00
parent c95008703c
commit c9cf59762a

View file

@ -54,10 +54,12 @@ class CommonView(APIView):
""" """
Generic view to show "about project" info page. Generic view to show "about project" info page.
""" """
packages = self.get_packages()
return { return {
'project_title': self.get_project_title(), 'project_title': self.get_project_title(),
'project_version': self.get_project_version(), 'project_version': self.get_project_version(),
'packages': self.get_packages(), 'packages': packages,
'package_names': list(packages),
} }
def get_project_title(self): def get_project_title(self):