Browse Source

[Bugfix] 修复网域网关列表的bug

pull/2135/head
ibuler 6 years ago
parent
commit
4cdddaa493
  1. 2
      apps/assets/api/domain.py

2
apps/assets/api/domain.py

@ -39,7 +39,7 @@ class DomainViewSet(BulkModelViewSet):
class GatewayViewSet(BulkModelViewSet):
filter_fields = ("domain__name", "name", "username", "ip")
filter_fields = ("domain__name", "name", "username", "ip", "domain")
search_fields = filter_fields
queryset = Gateway.objects.all()
permission_classes = (IsOrgAdmin,)

Loading…
Cancel
Save