crypto: fix default API not having an ordering

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-02 13:00:41 +01:00
parent 4f54ce6afb
commit 20c738c384
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,8 @@ class CertificateKeyPairViewSet(UsedByMixin, ModelViewSet):
queryset = CertificateKeyPair.objects.exclude(managed__isnull=False) queryset = CertificateKeyPair.objects.exclude(managed__isnull=False)
serializer_class = CertificateKeyPairSerializer serializer_class = CertificateKeyPairSerializer
filterset_class = CertificateKeyPairFilter filterset_class = CertificateKeyPairFilter
ordering = ["name"]
search_fields = ["name"]
@permission_required(None, ["authentik_crypto.add_certificatekeypair"]) @permission_required(None, ["authentik_crypto.add_certificatekeypair"])
@extend_schema( @extend_schema(