From 5023bdba2f9e418666bd461e7493ab5caa514a31 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 21 Oct 2024 00:38:36 -0700 Subject: [PATCH] only list admins that are not system user --- archivebox/index/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/index/sql.py b/archivebox/index/sql.py index cb07d546..18b811e7 100644 --- a/archivebox/index/sql.py +++ b/archivebox/index/sql.py @@ -160,4 +160,4 @@ def apply_migrations(out_dir: Path=DATA_DIR) -> List[str]: @enforce_types def get_admins(out_dir: Path=DATA_DIR) -> List[str]: from django.contrib.auth.models import User - return User.objects.filter(is_superuser=True) + return User.objects.filter(is_superuser=True).exclude(username='system')