

def init_admin(app):
    admin_url = '/admin'
    admin = Admin(index_view=AdminPanel(url=admin_url), name=lazy_gettext('Lab Manager'), url=admin_url, endpoint=admin_url)
    i18n_LMSmngmt = lazy_gettext('LT Management')
    admin.add_view(LTPanel(db.session, category=i18n_LMSmngmt, name=lazy_gettext('LT'), endpoint='lt/lt'))
    admin.add_view(PermissionToLtPanel(db.session, category=i18n_LMSmngmt, name=lazy_gettext('LT Permissions'), endpoint='lt/permissions'))
    admin.add_view(LtUsersPanel(db.session, category=i18n_LMSmngmt, name=lazy_gettext('LT Users'), endpoint='lt/users'))
    admin.add_view(LabRequestsPanel(db.session, category=i18n_LMSmngmt, name=lazy_gettext('LT Requests'), endpoint='lt/requests'))
    i18n_ReLMSmngmt = lazy_gettext('ReLMS Management')
    admin.add_view(RLMSPanel(db.session, category=i18n_ReLMSmngmt, name=lazy_gettext('RLMS'), endpoint='rlms/rlms'))
    admin.add_view(LaboratoryPanel(db.session, category=i18n_ReLMSmngmt, name=lazy_gettext('Registered labs'), endpoint='rlms/labs'))
    admin.add_view(UsersPanel(db.session, category=lazy_gettext('Users'), name=lazy_gettext('Labmanager Users'), endpoint='users/labmanager'))
    admin.add_view(RedirectView('logout', name=lazy_gettext('Log out'), endpoint='admin/logout'))
    admin.init_app(i18n_LMSmngmt)

dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py init_admin/VarMisuse@274/461 `app`->`i18n_LMSmngmt`