slight cleanup and refactor of Schedule.timezone property

This commit is contained in:
Ryan Petrello
2018-05-08 08:21:42 -04:00
parent 876431c529
commit 00ae91dace
2 changed files with 20 additions and 21 deletions

View File

@@ -745,7 +745,11 @@ class ScheduleZoneInfo(APIView):
swagger_topic = 'System Configuration'
def get(self, request):
return Response(Schedule.get_zoneinfo())
zones = [
{'name': zone}
for zone in Schedule.get_zoneinfo()
]
return Response(zones)
class LaunchConfigCredentialsBase(SubListAttachDetachAPIView):