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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user