diff --git a/corporate/views/support.py b/corporate/views/support.py index c55bbd350b..0e54ee8b94 100644 --- a/corporate/views/support.py +++ b/corporate/views/support.py @@ -490,11 +490,9 @@ def get_remote_servers_for_support( if uuid_to_search: remote_servers_set = set(remote_servers_query.filter(uuid__iexact=uuid_to_search)) - remote_realm_matches = ( - RemoteRealm.objects.filter(uuid__iexact=uuid_to_search) - .exclude(realm_deactivated=True) - .select_related("server") - ) + remote_realm_matches = RemoteRealm.objects.filter( + uuid__iexact=uuid_to_search + ).select_related("server") for remote_realm in remote_realm_matches: remote_servers_set.add(remote_realm.server) return list(remote_servers_set) @@ -504,9 +502,7 @@ def get_remote_servers_for_support( remote_servers_query.filter(hostname__icontains=hostname_to_search) ) remote_realm_matches = ( - RemoteRealm.objects.filter(host__icontains=hostname_to_search).exclude( - realm_deactivated=True - ) + RemoteRealm.objects.filter(host__icontains=hostname_to_search) ).select_related("server") for remote_realm in remote_realm_matches: remote_servers_set.add(remote_realm.server)