[Update] 标签序列类assets字段required为False

pull/4102/head
Bai 2020-06-12 11:45:03 +08:00
parent b14ca14120
commit 1bb9048910
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ class LabelSerializer(BulkOrgResourceModelSerializer):
read_only_fields = (
'category', 'date_created', 'asset_count', 'get_category_display'
)
extra_kwargs = {
'assets': {'required': False}
}
list_serializer_class = AdaptedBulkListSerializer
@staticmethod