From 7545705c3630f92511cdd36aec8c484d01080447 Mon Sep 17 00:00:00 2001 From: Saleem Latif Date: Fri, 13 Apr 2018 14:41:52 +0500 Subject: [PATCH] Deleted SAML Identity provider appears in the Enterprise customer IdPs list. --- common/djangoapps/third_party_auth/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/third_party_auth/admin.py b/common/djangoapps/third_party_auth/admin.py index 1cbd69fdf0..f6ebab7a47 100644 --- a/common/djangoapps/third_party_auth/admin.py +++ b/common/djangoapps/third_party_auth/admin.py @@ -66,7 +66,7 @@ class SAMLProviderConfigAdmin(KeyedConfigurationModelAdmin): """ with transaction.atomic(): for obj in queryset: - self.model.objects.filter(pk=obj.pk).update(archived=True) + self.model.objects.filter(pk=obj.pk).update(archived=True, enabled=False) self.message_user(request, _("Deleted the selected configuration(s).")) def get_list_display(self, request):