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

pull/4102/head
Bai 5 years ago
parent b14ca14120
commit 1bb9048910

@ -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

Loading…
Cancel
Save