From 1c0a6efeb1d8b21a6eb0c0aca6ffff097b8f6322 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 13 Dec 2020 18:25:30 +0100 Subject: [PATCH] flows/exporter: remove dead code since no stage is PolicyBindingModel --- authentik/flows/transfer/exporter.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/authentik/flows/transfer/exporter.py b/authentik/flows/transfer/exporter.py index bf79f1354..a7bb2432f 100644 --- a/authentik/flows/transfer/exporter.py +++ b/authentik/flows/transfer/exporter.py @@ -31,11 +31,6 @@ class FlowExporter: def _prepare_pbm(self): self.pbm_uuids = [self.flow.pbm_uuid] - for stage_subclass in Stage.__subclasses__(): - if issubclass(stage_subclass, PolicyBindingModel): - self.pbm_uuids += stage_subclass.objects.filter( - flow=self.flow - ).values_list("pbm_uuid", flat=True) self.pbm_uuids += FlowStageBinding.objects.filter(target=self.flow).values_list( "pbm_uuid", flat=True )