From 080ac6b5bbf4eed210745db00525f7de9db7a4d1 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",