2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-06 01:33:35 +00:00

Fixes for Stock API

This commit is contained in:
Oliver Walters
2020-05-16 23:12:43 +10:00
parent fd11317409
commit 197a3e6731
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -656,6 +656,12 @@ class StockAttachmentList(generics.ListCreateAPIView, AttachmentMixin):
queryset = StockItemAttachment.objects.all()
serializer_class = StockItemAttachmentSerializer
filter_backends = [
DjangoFilterBackend,
filters.OrderingFilter,
filters.SearchFilter,
]
filter_fields = [
'stock_item',
]
+1 -1
View File
@@ -212,7 +212,7 @@ class StockItemAttachmentSerializer(InvenTreeModelSerializer):
'stock_item',
'attachment',
'comment',
'date',
'upload_date',
'user',
'user_detail',
]