mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes for Stock API
This commit is contained in:
parent
fd11317409
commit
197a3e6731
@ -656,6 +656,12 @@ class StockAttachmentList(generics.ListCreateAPIView, AttachmentMixin):
|
|||||||
queryset = StockItemAttachment.objects.all()
|
queryset = StockItemAttachment.objects.all()
|
||||||
serializer_class = StockItemAttachmentSerializer
|
serializer_class = StockItemAttachmentSerializer
|
||||||
|
|
||||||
|
filter_backends = [
|
||||||
|
DjangoFilterBackend,
|
||||||
|
filters.OrderingFilter,
|
||||||
|
filters.SearchFilter,
|
||||||
|
]
|
||||||
|
|
||||||
filter_fields = [
|
filter_fields = [
|
||||||
'stock_item',
|
'stock_item',
|
||||||
]
|
]
|
||||||
|
@ -212,7 +212,7 @@ class StockItemAttachmentSerializer(InvenTreeModelSerializer):
|
|||||||
'stock_item',
|
'stock_item',
|
||||||
'attachment',
|
'attachment',
|
||||||
'comment',
|
'comment',
|
||||||
'date',
|
'upload_date',
|
||||||
'user',
|
'user',
|
||||||
'user_detail',
|
'user_detail',
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user