From 20c738c384c22922aeb5a2abb104a9b8cf9c4807 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 2 Dec 2021 13:00:41 +0100 Subject: [PATCH] crypto: fix default API not having an ordering Signed-off-by: Jens Langhammer --- authentik/crypto/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authentik/crypto/api.py b/authentik/crypto/api.py index 2c9a0baaa..4eb02dddc 100644 --- a/authentik/crypto/api.py +++ b/authentik/crypto/api.py @@ -144,6 +144,8 @@ class CertificateKeyPairViewSet(UsedByMixin, ModelViewSet): queryset = CertificateKeyPair.objects.exclude(managed__isnull=False) serializer_class = CertificateKeyPairSerializer filterset_class = CertificateKeyPairFilter + ordering = ["name"] + search_fields = ["name"] @permission_required(None, ["authentik_crypto.add_certificatekeypair"]) @extend_schema(