Deleted SAML Identity provider appears in the Enterprise customer IdPs list.

This commit is contained in:
Saleem Latif
2018-04-13 14:41:52 +05:00
parent 062b04aee7
commit 7545705c36

View File

@@ -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):