Browse Source

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

pull/4102/head
Bai 5 years ago
parent
commit
1bb9048910
  1. 3
      apps/assets/serializers/label.py

3
apps/assets/serializers/label.py

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