Fixes for BuildOrder attachment API list

This commit is contained in:
Oliver 2021-07-08 10:50:34 +10:00
parent 1deab0c040
commit fcc244b52f

View File

@ -237,6 +237,14 @@ class BuildAttachmentList(generics.ListCreateAPIView, AttachmentMixin):
queryset = BuildOrderAttachment.objects.all() queryset = BuildOrderAttachment.objects.all()
serializer_class = BuildAttachmentSerializer serializer_class = BuildAttachmentSerializer
filter_backends = [
DjangoFilterBackend,
]
filter_fields = [
'build',
]
class BuildAttachmentDetail(generics.RetrieveUpdateDestroyAPIView, AttachmentMixin): class BuildAttachmentDetail(generics.RetrieveUpdateDestroyAPIView, AttachmentMixin):
""" """