mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 15:58:38 -05:00
Integrate main schedules resource
Integrated scheduled jobs list Implement updating ancillary details on dependent models Further cleanup
This commit is contained in:
+9
-1
@@ -238,7 +238,7 @@ class DashboardView(APIView):
|
||||
'total': job_template_list.count()}
|
||||
return Response(data)
|
||||
|
||||
class ScheduleList(ListCreateAPIView):
|
||||
class ScheduleList(ListAPIView):
|
||||
|
||||
view_name = "Schedules"
|
||||
model = Schedule
|
||||
@@ -251,6 +251,14 @@ class ScheduleDetail(RetrieveUpdateDestroyAPIView):
|
||||
serializer_class = ScheduleSerializer
|
||||
new_in_148 = True
|
||||
|
||||
class ScheduleUnifiedJobsList(SubListAPIView):
|
||||
|
||||
model = UnifiedJob
|
||||
serializer_class = UnifiedJobSerializer
|
||||
parent_model = Schedule
|
||||
relationship = ''
|
||||
view_name = 'Schedule Jobs List'
|
||||
|
||||
class AuthTokenView(APIView):
|
||||
|
||||
authentication_classes = []
|
||||
|
||||
Reference in New Issue
Block a user