def resolve_admin_type(admin):
    """Determine admin type."""
    if admin is current_user or isinstance(admin, UserMixin):
        return 'User'
    else:
        return admin.__class__.__name__
def resolve_admin_type(admin):
    """Determine admin type."""
    if admin is current_user or isinstance(admin, UserMixin):
        return 'User'
    else:
        return admin.__class__.__name__
def resolve_admin_type ( admin ) : if admin is current_user or isinstance ( admin , UserMixin ) : return 'User' else : return admin . __class__ . __name__
Determine admin type.
Determine admin type .