modifying schedules API to return a list of links

This commit is contained in:
John Westcott IV
2022-05-31 17:07:41 -04:00
parent 23aaf5b3ad
commit c836fafb61
2 changed files with 20 additions and 2 deletions

View File

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