<gh_stars>0
from xadmin.sites import site as xadmin_site
from xadmin.views import UpdateAdminView, ListAdminView, CreateAdminView


def register(site=None):
    """Plugin register views"""
    if site is None:
        site = xadmin_site

    from xplugin_solo.plugin import SoloPlugin

    site.register_plugin(SoloPlugin, CreateAdminView)
    site.register_plugin(SoloPlugin, UpdateAdminView)
    site.register_plugin(SoloPlugin, ListAdminView)

from xadmin.sites import site as xadmin_site
from xadmin.views import UpdateAdminView, ListAdminView, CreateAdminView


def register(site=None):
    """Plugin register views"""
    if site is None:
        site = xadmin_site

    from xplugin_solo.plugin import SoloPlugin

    site.register_plugin(SoloPlugin, CreateAdminView)
    site.register_plugin(SoloPlugin, UpdateAdminView)
    site.register_plugin(SoloPlugin, ListAdminView)
Plugin register views