From 134799c7347f96cd96b343b46e6578ddbe9fcdf9 Mon Sep 17 00:00:00 2001 From: Jens L Date: Thu, 26 Oct 2023 19:57:11 +0200 Subject: [PATCH] root: fix pylint errors (#7312) --- authentik/core/api/applications.py | 1 + authentik/core/api/groups.py | 1 + authentik/core/sources/flow_manager.py | 1 + 3 files changed, 3 insertions(+) diff --git a/authentik/core/api/applications.py b/authentik/core/api/applications.py index 478181c28..cb4c01e76 100644 --- a/authentik/core/api/applications.py +++ b/authentik/core/api/applications.py @@ -98,6 +98,7 @@ class ApplicationSerializer(ModelSerializer): class ApplicationViewSet(UsedByMixin, ModelViewSet): """Application Viewset""" + # pylint: disable=no-member queryset = Application.objects.all().prefetch_related("provider") serializer_class = ApplicationSerializer search_fields = [ diff --git a/authentik/core/api/groups.py b/authentik/core/api/groups.py index 4c6a8b509..21ba19974 100644 --- a/authentik/core/api/groups.py +++ b/authentik/core/api/groups.py @@ -139,6 +139,7 @@ class UserAccountSerializer(PassiveSerializer): class GroupViewSet(UsedByMixin, ModelViewSet): """Group Viewset""" + # pylint: disable=no-member queryset = Group.objects.all().select_related("parent").prefetch_related("users") serializer_class = GroupSerializer search_fields = ["name", "is_superuser"] diff --git a/authentik/core/sources/flow_manager.py b/authentik/core/sources/flow_manager.py index a452f04d9..0fb038d90 100644 --- a/authentik/core/sources/flow_manager.py +++ b/authentik/core/sources/flow_manager.py @@ -97,6 +97,7 @@ class SourceFlowManager: if self.request.user.is_authenticated: new_connection.user = self.request.user new_connection = self.update_connection(new_connection, **kwargs) + # pylint: disable=no-member new_connection.save() return Action.LINK, new_connection