2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-17 17:58:22 +00:00

Schema cleanup tmp (#9143)

* Add type hints for name, address, expired, and active

* Add nullable to various fields that return null in the test dataset

* Removed nullable type hint, add default boolean value instead of nullable

* Bump schema version

* Add schema version notes, add localized tags for doc string

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
Joe Rogers
2025-02-28 09:15:35 +01:00
committed by GitHub
parent 92a9423c21
commit 157cbbead5
8 changed files with 44 additions and 17 deletions

View File

@@ -160,6 +160,14 @@ class CompanySerializer(
return queryset
address = serializers.CharField(
label=_(
'Return the string representation for the primary address. This property exists for backwards compatibility.'
),
allow_null=True,
read_only=True,
)
primary_address = AddressSerializer(required=False, allow_null=True, read_only=True)
image = InvenTreeImageSerializerField(required=False, allow_null=True)