Fix 400 error from job labels sublist (#13972)

This was caused by an incorrect parent_key ref from label to job
  also applies to workflow_job labels

This fixes a regression introduced by a recent merge (#13957)
This commit is contained in:
Alan Rominger
2023-05-10 11:37:59 -04:00
committed by GitHub
parent 595b4e3876
commit 06430741ab
2 changed files with 10 additions and 1 deletions

View File

@@ -3333,7 +3333,6 @@ class JobLabelList(SubListAPIView):
serializer_class = serializers.LabelSerializer
parent_model = models.Job
relationship = 'labels'
parent_key = 'job'
class WorkflowJobLabelList(JobLabelList):