providers/ldap: fix lint error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-26 15:49:19 +02:00
parent 91ca90f700
commit 29da7dd8d6
1 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,6 @@ from django.utils.translation import gettext_lazy as _
from rest_framework.serializers import Serializer
from authentik.core.models import Provider
from authentik.flows.models import Flow
from authentik.outposts.models import OutpostModel
@ -29,9 +28,9 @@ class LDAPProvider(OutpostModel, Provider):
@property
def serializer(self) -> Type[Serializer]:
from authentik.providers.oauth2.api.provider import OAuth2ProviderSerializer
from authentik.providers.ldap.api import LDAPProviderSerializer
return OAuth2ProviderSerializer
return LDAPProviderSerializer
def __str__(self):
return f"LDAP Provider {self.name}"