mirror of https://github.com/jumpserver/jumpserver
[Update] 标签序列类assets字段required为False
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…
Reference in New Issue