From 91b5911ff2bb17fe8ac85b1b939db599bb90d8ae Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 5 Apr 2020 15:46:18 +1000 Subject: [PATCH] Add 'notes' field to Part detail API --- InvenTree/part/serializers.py | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/InvenTree/part/serializers.py b/InvenTree/part/serializers.py index 3183a7caf9..cd3a8c9017 100644 --- a/InvenTree/part/serializers.py +++ b/InvenTree/part/serializers.py @@ -100,34 +100,34 @@ class PartSerializer(InvenTreeModelSerializer): model = Part partial = True fields = [ - 'pk', - 'url', # Link to the part detail page + 'active', + 'allocated_stock', + 'assembly', 'bom_items', + 'building', 'category', 'category_name', - 'image', - 'thumbnail', + 'component', + 'description', 'full_name', - 'name', + 'image', 'IPN', 'is_template', - 'variant_of', - 'description', 'keywords', - 'URL', - 'total_stock', - 'allocated_stock', + 'name', + 'notes', 'on_order', - 'building', - 'units', - 'used_in', - 'trackable', - 'assembly', - 'component', - 'trackable', + 'pk', 'purchaseable', 'salable', - 'active', + 'thumbnail', + 'trackable', + 'total_stock', + 'units', + 'used_in', + 'URL', + 'url', # Link to the part detail page + 'variant_of', 'virtual', ]