|
|
@ -16,8 +16,8 @@ from orgs.mixins.api import RootOrgViewMixin |
|
|
|
from perms.models.base import Action |
|
|
|
from perms.models.base import Action |
|
|
|
from terminal.models import EndpointRule |
|
|
|
from terminal.models import EndpointRule |
|
|
|
from ..serializers import ( |
|
|
|
from ..serializers import ( |
|
|
|
ConnectionTokenSerializer, ConnectionTokenSecretSerializer, SuperConnectionTokenSerializer, |
|
|
|
ConnectionTokenSerializer, ConnectionTokenSecretSerializer, |
|
|
|
ConnectionTokenDisplaySerializer, |
|
|
|
SuperConnectionTokenSerializer, ConnectionTokenDisplaySerializer, |
|
|
|
) |
|
|
|
) |
|
|
|
from ..models import ConnectionToken |
|
|
|
from ..models import ConnectionToken |
|
|
|
|
|
|
|
|
|
|
@ -204,8 +204,8 @@ class ConnectionTokenMixin: |
|
|
|
|
|
|
|
|
|
|
|
class ConnectionTokenViewSet(ConnectionTokenMixin, RootOrgViewMixin, JMSModelViewSet): |
|
|
|
class ConnectionTokenViewSet(ConnectionTokenMixin, RootOrgViewMixin, JMSModelViewSet): |
|
|
|
filterset_fields = ( |
|
|
|
filterset_fields = ( |
|
|
|
'type', |
|
|
|
'type', 'user_display', 'system_user_display', |
|
|
|
'user_display', 'system_user_display', 'application_display', 'asset_display' |
|
|
|
'application_display', 'asset_display' |
|
|
|
) |
|
|
|
) |
|
|
|
search_fields = filterset_fields |
|
|
|
search_fields = filterset_fields |
|
|
|
serializer_classes = { |
|
|
|
serializer_classes = { |
|
|
|