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