Unverified Commit 07875197 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3496 from jumpserver/gateway_bug

[Update] 修复获取网关bug
parents dd6e0f54 1fd98ae4
...@@ -29,8 +29,8 @@ class DomainViewSet(OrgBulkModelViewSet): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment