[Update] 修复获取网关bug

pull/3496/head
jym503558564 5 years ago
parent dd6e0f548c
commit 1fd98ae404

@ -29,8 +29,8 @@ class DomainViewSet(OrgBulkModelViewSet):
class GatewayViewSet(OrgBulkModelViewSet): class GatewayViewSet(OrgBulkModelViewSet):
model = Gateway model = Gateway
filter_fields = ("domain__name", "name", "username", "ip", "domain__id") filter_fields = ("domain__name", "name", "username", "ip", "domain")
search_fields = filter_fields search_fields = ("domain__name", "name", "username", "ip")
permission_classes = (IsOrgAdmin,) permission_classes = (IsOrgAdmin,)
serializer_class = serializers.GatewaySerializer serializer_class = serializers.GatewaySerializer

Loading…
Cancel
Save