(domain)
return [
        role for role in UserRole.objects.get_by_domain(domain)
        if role.name not in UserRolePresets.INITIAL_ROLES
    ]
Returns a list of roles for the domain excluding archived roles
    and 'default' roles.
Returns a list of roles for the domain excluding archived roles
    and 'default' roles.
Returns a list of roles for the domain excluding archived roles and default roles .
def get_custom_roles_for_domain(domain):
    """Returns a list of roles for the domain excluding archived roles
    and 'default' roles."""
    return [
        role for role in UserRole.objects.get_by_domain(domain)
        if role.name not in UserRolePresets.INITIAL_ROLES
    ]
def get_custom_roles_for_domain ( domain ) : return [ role for role in UserRole . objects . get_by_domain ( domain ) if role . name not in UserRolePresets . INITIAL_ROLES ]