From 8f846f5e251d5ede9f001f6d423a06300f1e27b9 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Mon, 4 Dec 2023 10:14:34 +0100 Subject: [PATCH] fix embedded outpost deletion Signed-off-by: Marc 'risson' Schmitt --- authentik/outposts/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/outposts/apps.py b/authentik/outposts/apps.py index 7eefbf5d3..42e4bf120 100644 --- a/authentik/outposts/apps.py +++ b/authentik/outposts/apps.py @@ -61,4 +61,4 @@ class AuthentikOutpostConfig(ManagedAppConfig): ) outpost.save() else: - Outpost.objects.delete(managed=MANAGED_OUTPOST) + Outpost.objects.filter(managed=MANAGED_OUTPOST).delete()