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 = [
'part',
'uuid',
'location',
'supplier_part',
'customer',

View File

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