mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-29 20:30:39 +00:00
Add missing nullable annotation to optional field (#10651)
* Add missing nullable annotation to optional field * Bump api version * Fix merge mistake
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
"""InvenTree API version information."""
|
"""InvenTree API version information."""
|
||||||
|
|
||||||
# InvenTree API version
|
# InvenTree API version
|
||||||
INVENTREE_API_VERSION = 415
|
INVENTREE_API_VERSION = 416
|
||||||
"""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."""
|
||||||
|
|
||||||
INVENTREE_API_TEXT = """
|
INVENTREE_API_TEXT = """
|
||||||
|
|
||||||
|
v416 -> 2025-10-22 : https://github.com/inventree/InvenTree/pull/10651
|
||||||
|
- Add missing nullable to make price_breaks (from v412) optional
|
||||||
|
|
||||||
v415 -> 2025-10-22 : https://github.com/inventree/InvenTree/pull/10650
|
v415 -> 2025-10-22 : https://github.com/inventree/InvenTree/pull/10650
|
||||||
- Adds "shipment_address" fields to the SalesOrderShipment API endpoints
|
- Adds "shipment_address" fields to the SalesOrderShipment API endpoints
|
||||||
|
|
||||||
|
|||||||
@@ -1042,7 +1042,9 @@ class PartSerializer(
|
|||||||
)
|
)
|
||||||
|
|
||||||
price_breaks = enable_filter(
|
price_breaks = enable_filter(
|
||||||
PartSalePriceSerializer(source='salepricebreaks', many=True, read_only=True),
|
PartSalePriceSerializer(
|
||||||
|
source='salepricebreaks', many=True, read_only=True, allow_null=True
|
||||||
|
),
|
||||||
False,
|
False,
|
||||||
filter_name='price_breaks',
|
filter_name='price_breaks',
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user