from flask_admin.contrib.sqla import ModelView

def format_user(obj, request, user, *args):
    return user.email.split("@")[0]

class UserAdmin(ModelView):
    """Admin interface"""

    column_formatters = {"email" : format_user}
    column_list = {"email", "admin"}
    column_searchable_list = ["email"]
    column_filters = ["email", "admin"]

    can_create = False
    can_delete = False
    can_edit = False


144140efd91a218c14c72bc7d8cc0159cfb8d35c
<mask token>


class UserAdmin(ModelView):
    <mask token>
    column_formatters = {'email': format_user}
    column_list = {'email', 'admin'}
    column_searchable_list = ['email']
    column_filters = ['email', 'admin']
    can_create = False
    can_delete = False
    can_edit = False

<mask token>


class UserAdmin(ModelView):
    """Admin interface"""
    column_formatters = {'email': format_user}
    column_list = {'email', 'admin'}
    column_searchable_list = ['email']
    column_filters = ['email', 'admin']
    can_create = False
    can_delete = False
    can_edit = False

<mask token>


def format_user(obj, request, user, *args):
    return user.email.split('@')[0]


class UserAdmin(ModelView):
    """Admin interface"""
    column_formatters = {'email': format_user}
    column_list = {'email', 'admin'}
    column_searchable_list = ['email']
    column_filters = ['email', 'admin']
    can_create = False
    can_delete = False
    can_edit = False

from flask_admin.contrib.sqla import ModelView


def format_user(obj, request, user, *args):
    return user.email.split('@')[0]


class UserAdmin(ModelView):
    """Admin interface"""
    column_formatters = {'email': format_user}
    column_list = {'email', 'admin'}
    column_searchable_list = ['email']
    column_filters = ['email', 'admin']
    can_create = False
    can_delete = False
    can_edit = False

from flask_admin.contrib.sqla import ModelView

def format_user(obj, request, user, *args):
    return user.email.split("@")[0]

class UserAdmin(ModelView):
    """Admin interface"""

    column_formatters = {"email" : format_user}
    column_list = {"email", "admin"}
    column_searchable_list = ["email"]
    column_filters = ["email", "admin"]

    can_create = False
    can_delete = False
    can_edit = False

