Skip to content

Commit

Permalink
fix(backend): 修复dbha choice字段问题 TencentBlueKing#5247
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Jun 28, 2024
1 parent 1c687a2 commit 69c65f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dbm-ui/backend/db_proxy/views/db_meta/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers

from backend.db_meta.enums import ClusterType, InstanceStatus
from backend.db_proxy.views import mock_data
from backend.db_proxy.views.serialiers import BaseProxyPassSerializer

Expand All @@ -25,15 +24,15 @@ class InstancesSerializer(BaseProxyPassSerializer):
)
statuses = serializers.ListField(
help_text=_("状态列表"),
child=serializers.ChoiceField(choices=InstanceStatus.get_choices()),
child=serializers.CharField(),
allow_null=True,
allow_empty=True,
required=False,
)
bk_cloud_id = serializers.IntegerField()
cluster_types = serializers.ListField(
help_text=_("集群类型"),
child=serializers.ChoiceField(choices=ClusterType.get_choices()),
child=serializers.CharField(),
allow_null=True,
allow_empty=True,
required=False,
Expand Down

0 comments on commit 69c65f7

Please sign in to comment.