Beispiel #1
0
def getAccountRole(user):
    """
    :param user: The user model
    :return: The string representation of the name for the role
    """
    return Account.toAccount(user.account.role).lower()