mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
only list admins that are not system user
This commit is contained in:
parent
a97cc82979
commit
5023bdba2f
1 changed files with 1 additions and 1 deletions
|
@ -160,4 +160,4 @@ def apply_migrations(out_dir: Path=DATA_DIR) -> List[str]:
|
||||||
@enforce_types
|
@enforce_types
|
||||||
def get_admins(out_dir: Path=DATA_DIR) -> List[str]:
|
def get_admins(out_dir: Path=DATA_DIR) -> List[str]:
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
return User.objects.filter(is_superuser=True)
|
return User.objects.filter(is_superuser=True).exclude(username='system')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue