Skip to content

Commit

Permalink
core: fix UUID filter field for users api (#6203)
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu committed Jul 10, 2023
1 parent 622c0fa commit 080ac6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authentik/core/api/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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 (
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 080ac6b

Please sign in to comment.