Add 'notes' field to Part detail API

This commit is contained in:
Oliver Walters 2020-04-05 15:46:18 +10:00
parent 1f172b3a57
commit 91b5911ff2

View File

@ -100,34 +100,34 @@ class PartSerializer(InvenTreeModelSerializer):
model = Part model = Part
partial = True partial = True
fields = [ fields = [
'pk', 'active',
'url', # Link to the part detail page 'allocated_stock',
'assembly',
'bom_items', 'bom_items',
'building',
'category', 'category',
'category_name', 'category_name',
'image', 'component',
'thumbnail', 'description',
'full_name', 'full_name',
'name', 'image',
'IPN', 'IPN',
'is_template', 'is_template',
'variant_of',
'description',
'keywords', 'keywords',
'URL', 'name',
'total_stock', 'notes',
'allocated_stock',
'on_order', 'on_order',
'building', 'pk',
'units',
'used_in',
'trackable',
'assembly',
'component',
'trackable',
'purchaseable', 'purchaseable',
'salable', 'salable',
'active', 'thumbnail',
'trackable',
'total_stock',
'units',
'used_in',
'URL',
'url', # Link to the part detail page
'variant_of',
'virtual', 'virtual',
] ]