Fix context such that build output can be deleted

This commit is contained in:
Oliver 2022-05-17 11:52:42 +10:00
parent 334025b844
commit 256451d82b

View File

@ -282,6 +282,13 @@ class BuildOutputDelete(BuildOrderContextMixin, generics.CreateAPIView):
API endpoint for deleting multiple build outputs
"""
def get_serializer_context(self):
ctx = super().get_serializer_context()
ctx['to_complete'] = False
return ctx
queryset = Build.objects.none()
serializer_class = build.serializers.BuildOutputDeleteSerializer