Add "units" to PartBriefSerializer

This commit is contained in:
Oliver Walters 2021-08-26 21:54:25 +10:00
parent 9b6b5825f3
commit ec88415f3d
2 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,10 @@ INVENTREE_API_VERSION = 10
""" """
Increment this API version number whenever there is a significant change to the API that any clients need to know about Increment this API version number whenever there is a significant change to the API that any clients need to know about
v11 -> 2021-08-26
- Adds "units" field to PartBriefSerializer
- This allows units to be introspected from the "part_detail" field in the StockItem serializer
v10 -> 2021-08-23 v10 -> 2021-08-23
- Adds "purchase_price_currency" to StockItem serializer - Adds "purchase_price_currency" to StockItem serializer
- Adds "purchase_price_string" to StockItem serializer - Adds "purchase_price_string" to StockItem serializer

View File

@ -206,6 +206,7 @@ class PartBriefSerializer(InvenTreeModelSerializer):
'stock', 'stock',
'trackable', 'trackable',
'virtual', 'virtual',
'units',
] ]