mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2023 from inventree/units-in-api
Add "units" to PartBriefSerializer
This commit is contained in:
commit
320ca451cc
@ -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
|
||||||
|
@ -206,6 +206,7 @@ class PartBriefSerializer(InvenTreeModelSerializer):
|
|||||||
'stock',
|
'stock',
|
||||||
'trackable',
|
'trackable',
|
||||||
'virtual',
|
'virtual',
|
||||||
|
'units',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user