From 02dc112f8fd352cd10d260c17e3689c186ee28c4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 9 Feb 2021 20:59:39 +0100 Subject: [PATCH] outposts: fix ProxyProvider update not triggering outpost update --- authentik/outposts/signals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/outposts/signals.py b/authentik/outposts/signals.py index fe7024427..69b8881b9 100644 --- a/authentik/outposts/signals.py +++ b/authentik/outposts/signals.py @@ -20,6 +20,7 @@ UPDATE_TRIGGERING_MODELS = ( @receiver(post_save) +# pylint: disable=unused-argument def post_save_update(sender, instance: Model, **_): """If an Outpost is saved, Ensure that token is created/updated @@ -29,7 +30,7 @@ def post_save_update(sender, instance: Model, **_): return if instance.__module__ == "__fake__": return - if sender not in UPDATE_TRIGGERING_MODELS: + if not isinstance(instance, UPDATE_TRIGGERING_MODELS): return outpost_post_save.delay(class_to_path(instance.__class__), instance.pk)