瀏覽代碼

only list admins that are not system user

Nick Sweeting 1 年之前
父節點
當前提交
5023bdba2f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      archivebox/index/sql.py

+ 1 - 1
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')