We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c7fc4 commit 9c26e77Copy full SHA for 9c26e77
1 file changed
authentik/enterprise/api.py
@@ -12,6 +12,7 @@
12
from rest_framework.permissions import IsAuthenticated
13
from rest_framework.request import Request
14
from rest_framework.response import Response
15
+from rest_framework.validators import UniqueValidator
16
from rest_framework.viewsets import ModelViewSet
17
18
from authentik.core.api.used_by import UsedByMixin
@@ -53,6 +54,7 @@ class Meta:
53
54
"external_users",
55
]
56
extra_kwargs = {
57
+ "key": {"validators": [UniqueValidator(queryset=License.objects.all())]},
58
"name": {"read_only": True},
59
"expiry": {"read_only": True},
60
"internal_users": {"read_only": True},
0 commit comments