2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Include uuid in serializer and api

This commit is contained in:
Oliver Walters 2019-04-13 07:56:06 +10:00
parent 7b68bac32f
commit 51d77ce4d2
2 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,7 @@ class StockList(generics.ListCreateAPIView):
filter_fields = [ filter_fields = [
'part', 'part',
'uuid',
'location', 'location',
'supplier_part', 'supplier_part',
'customer', 'customer',

View File

@ -60,6 +60,7 @@ class StockItemSerializer(serializers.ModelSerializer):
model = StockItem model = StockItem
fields = [ fields = [
'pk', 'pk',
'uuid',
'url', 'url',
'part', 'part',
'supplier_part', 'supplier_part',