<s> from xadmin . sites import AdminSite <EOL> from xadmin . views import BaseAdminView , CommAdminView , ListAdminView <EOL> from models import ModelA , ModelB <EOL> site = AdminSite ( '<STR_LIT>' ) <EOL> class ModelAAdmin ( object ) : <EOL> test_model_attr = '<STR_LIT>' <EOL> model_icon = '<STR_LIT>' <EOL> class TestBaseView ( BaseAdminView ) : <EOL> pass <EOL> class TestCommView ( CommAdminView ) : <EOL> global_models_icon = { ModelB : '<STR_LIT:test>' } <EOL> class TestAView ( BaseAdminView ) : <EOL> pass <EOL> class OptionA ( object ) : <EOL> option_attr = '<STR_LIT>' <EOL> site . register_modelview ( r'<STR_LIT>' , ListAdminView , name = '<STR_LIT>' ) <EOL> site . register_view ( r"<STR_LIT>" , TestBaseView , '<STR_LIT:test>' ) <EOL> site . register_view ( r"<STR_LIT>" , TestCommView , '<STR_LIT>' ) <EOL> site . register_view ( r"<STR_LIT>" , TestAView , '<STR_LIT>' ) <EOL> site . register ( ModelA , ModelAAdmin ) <EOL> site . register ( ModelB ) </s>
