mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复无法批量禁用启用的bug
parent
05ecd7497a
commit
2354f0c970
|
@ -20,7 +20,7 @@ class AssetSerializer(BulkSerializerMixin, serializers.ModelSerializer):
|
||||||
model = Asset
|
model = Asset
|
||||||
list_serializer_class = BulkListSerializer
|
list_serializer_class = BulkListSerializer
|
||||||
fields = '__all__'
|
fields = '__all__'
|
||||||
# validators = [] # If not set to [], partial bulk update will be error
|
validators = [] # If not set to [], partial bulk update will be error
|
||||||
|
|
||||||
def get_field_names(self, declared_fields, info):
|
def get_field_names(self, declared_fields, info):
|
||||||
fields = super().get_field_names(declared_fields, info)
|
fields = super().get_field_names(declared_fields, info)
|
||||||
|
|
Loading…
Reference in New Issue