From 1df87900500ed67158af015210080ced8dd0549c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 13 May 2021 18:09:55 +0200 Subject: [PATCH] stages/authenticator_static: fix error when listing devices Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_static/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/authentik/stages/authenticator_static/api.py b/authentik/stages/authenticator_static/api.py index 297c43b39..555a42bab 100644 --- a/authentik/stages/authenticator_static/api.py +++ b/authentik/stages/authenticator_static/api.py @@ -1,9 +1,8 @@ """AuthenticatorStaticStage API Views""" -from django_filters import OrderingFilter from django_filters.rest_framework import DjangoFilterBackend from django_otp.plugins.otp_static.models import StaticDevice from guardian.utils import get_anonymous_user -from rest_framework.filters import SearchFilter +from rest_framework.filters import OrderingFilter, SearchFilter from rest_framework.permissions import IsAdminUser from rest_framework.serializers import ModelSerializer from rest_framework.viewsets import ModelViewSet, ReadOnlyModelViewSet