Merge pull request #2023 from inventree/units-in-api

Add "units" to PartBriefSerializer
This commit is contained in:
Oliver 2021-08-26 22:12:27 +10:00 committed by GitHub
commit 320ca451cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
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
- Adds "purchase_price_currency" to StockItem serializer
- Adds "purchase_price_string" to StockItem serializer

View File

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