(user: AbstractUser)
return user.is_superuser
Determines whether the given user is the admin.
Determines whether the given user is the admin.
Determines whether the given user is the admin .
def is_admin(user: AbstractUser) -> bool:
    """Determines whether the given user is the admin."""
    return user.is_superuser
def is_admin ( user : AbstractUser ) -> bool : return user . is_superuser