Fixes for PurchaseOrder attachment table

This commit is contained in:
Oliver 2021-07-08 10:45:42 +10:00
parent 41268d92bf
commit 939d5838fa

View File

@ -593,6 +593,14 @@ class POAttachmentList(generics.ListCreateAPIView, AttachmentMixin):
queryset = PurchaseOrderAttachment.objects.all()
serializer_class = POAttachmentSerializer
filter_backends = [
DjangoFilterBackend,
]
filter_fields = [
'order',
]
class POAttachmentDetail(generics.RetrieveUpdateDestroyAPIView, AttachmentMixin):
"""