diff --git a/apps/authentication/api/ssh_key.py b/apps/authentication/api/ssh_key.py index aa4b34ad4..e851e714e 100644 --- a/apps/authentication/api/ssh_key.py +++ b/apps/authentication/api/ssh_key.py @@ -12,6 +12,8 @@ from users.notifications import ResetPublicKeySuccessMsg class SSHkeyViewSet(JMSModelViewSet): serializer_class = SSHKeySerializer permission_classes = [IsValidUser] + filterset_fields = ('name', 'is_active') + search_fields = ('name',) def get_queryset(self): return self.request.user.ssh_keys.all()