From 51d77ce4d2382edb9a8fd2cd07b3854aa8beeaa5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 13 Apr 2019 07:56:06 +1000 Subject: [PATCH] Include uuid in serializer and api --- InvenTree/stock/api.py | 1 + InvenTree/stock/serializers.py | 1 + 2 files changed, 2 insertions(+) diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index d2c1c13805..fc3d3f023b 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -222,6 +222,7 @@ class StockList(generics.ListCreateAPIView): filter_fields = [ 'part', + 'uuid', 'location', 'supplier_part', 'customer', diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index 9105e78dce..f143162e7a 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -60,6 +60,7 @@ class StockItemSerializer(serializers.ModelSerializer): model = StockItem fields = [ 'pk', + 'uuid', 'url', 'part', 'supplier_part',