From d2c4bcf25dadf2164aa673266b04499653123cdb Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 10 Jul 2023 12:12:39 +0200 Subject: [PATCH] core: fix UUID filter field for users api (#6203) Signed-off-by: Jens Langhammer --- authentik/core/api/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index 108714fc3..123ae0fb9 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -15,7 +15,7 @@ from django.utils.http import urlencode from django.utils.text import slugify from django.utils.timezone import now from django.utils.translation import gettext as _ -from django_filters.filters import BooleanFilter, CharFilter, ModelMultipleChoiceFilter +from django_filters.filters import BooleanFilter, CharFilter, ModelMultipleChoiceFilter, UUIDFilter from django_filters.filterset import FilterSet from drf_spectacular.types import OpenApiTypes from drf_spectacular.utils import ( @@ -284,7 +284,7 @@ class UsersFilter(FilterSet): ) is_superuser = BooleanFilter(field_name="ak_groups", lookup_expr="is_superuser") - uuid = CharFilter(field_name="uuid") + uuid = UUIDFilter(field_name="uuid") path = CharFilter( field_name="path",