'title': _("media"), 'display': "tabs", 'children': [Models()] }) super(MainDashboard, self).__init__(**kwargs) class Models(modules.ModelList): def __init__(self, **kwargs): kwargs.update({ 'title': _("main models"), 'models': ( 'media.models.Photo', 'media.models.Video', ), }) super(Models, self).__init__(**kwargs) class DefaultAppDashboard(AppIndexDashboard): def __init__(self, app_title, models, **kwargs): AppIndexDashboard.__init__(self, app_title, models, **kwargs) self.columns = 3 def init_with_context(self, context): self.children.append(DefaultDashboard(), ) jmb_dashboard.register_group(MainDashboard, 'media') admin_tools.dashboard.register(DefaultAppDashboard, 'media')
def __init__(self, **kwargs): kwargs.update({ 'title': _("project"), 'display': "tabs", 'children': [Models()] }) super(MainDashboard, self).__init__(**kwargs) class Models(modules.ModelList): def __init__(self, **kwargs): kwargs.update({ 'title': _("main models"), 'models': ('project.models.Project', 'project.models.Task', ), }) super(Models, self).__init__(**kwargs) class DefaultAppDashboard(AppIndexDashboard): def __init__(self, app_title, models, **kwargs): AppIndexDashboard.__init__(self, app_title, models, **kwargs) self.columns = 3 def init_with_context(self, context): self.children.append(DefaultDashboard(), ) jmb_dashboard.register_group(MainDashboard, 'project') admin_tools.dashboard.register(DefaultAppDashboard, 'project')
class MainDashboard(modules.Group): def __init__(self, **kwargs): kwargs.update({ 'title': _("notify"), 'display': "tabs", 'children': [Models()] }) super(MainDashboard, self).__init__(**kwargs) class Models(modules.ModelList): def __init__(self, **kwargs): kwargs.update({ 'title': _("main models"), 'models': ('notify.models.Notify', ), }) super(Models, self).__init__(**kwargs) class DefaultAppDashboard(AppIndexDashboard): def __init__(self, app_title, models, **kwargs): AppIndexDashboard.__init__(self, app_title, models, **kwargs) self.columns = 3 def init_with_context(self, context): self.children.append(DefaultDashboard(), ) jmb_dashboard.register_group(MainDashboard, 'notify') admin_tools.dashboard.register(DefaultAppDashboard, 'notify')
class MainDashboard(modules.Group): def __init__(self, **kwargs): kwargs.update({ 'title': _("document"), 'display': "tabs", 'children': [Models()] }) super(MainDashboard, self).__init__(**kwargs) class Models(modules.ModelList): def __init__(self, **kwargs): kwargs.update({ 'title': _("main models"), 'models': ('document.models.Document', ), }) super(Models, self).__init__(**kwargs) class DefaultAppDashboard(AppIndexDashboard): def __init__(self, app_title, models, **kwargs): AppIndexDashboard.__init__(self, app_title, models, **kwargs) self.columns = 3 def init_with_context(self, context): self.children.append(DefaultDashboard(), ) jmb_dashboard.register_group(MainDashboard, 'document') admin_tools.dashboard.register(DefaultAppDashboard, 'document')
}) super(MainDashboard, self).__init__(**kwargs) class Models(modules.ModelList): def __init__(self, **kwargs): kwargs.update({ 'title': _("main models"), 'models': ( 'profile.models.Company', 'profile.models.Profile', 'profile.models.Invite', 'profile.models.Favourite', ), }) super(Models, self).__init__(**kwargs) class DefaultAppDashboard(AppIndexDashboard): def __init__(self, app_title, models, **kwargs): AppIndexDashboard.__init__(self, app_title, models, **kwargs) self.columns = 3 def init_with_context(self, context): self.children.append(DefaultDashboard(), ) jmb_dashboard.register_group(MainDashboard, 'profile') admin_tools.dashboard.register(DefaultAppDashboard, 'profile')
class MainDashboard(modules.Group): def __init__(self, **kwargs): kwargs.update({ 'title': _("message"), 'display': "tabs", 'children': [Models()] }) super(MainDashboard, self).__init__(**kwargs) class Models(modules.ModelList): def __init__(self, **kwargs): kwargs.update({ 'title': _("main models"), 'models': ('message.models.Message', ), }) super(Models, self).__init__(**kwargs) class DefaultAppDashboard(AppIndexDashboard): def __init__(self, app_title, models, **kwargs): AppIndexDashboard.__init__(self, app_title, models, **kwargs) self.columns = 3 def init_with_context(self, context): self.children.append(DefaultDashboard(), ) jmb_dashboard.register_group(MainDashboard, 'message') admin_tools.dashboard.register(DefaultAppDashboard, 'message')
kwargs.update({ 'title': _("quotation"), 'display': "tabs", 'children': [Models()] }) super(MainDashboard, self).__init__(**kwargs) class Models(modules.ModelList): def __init__(self, **kwargs): kwargs.update({ 'title': _("main models"), 'models': ('quotation.models.Bom', 'quotation.models.BomRow', 'quotation.models.Quotation', 'quotation.models.QuotationRow', 'quotation.models.Offer', 'quotation.models.Certification', ), }) super(Models, self).__init__(**kwargs) class DefaultAppDashboard(AppIndexDashboard): def __init__(self, app_title, models, **kwargs): AppIndexDashboard.__init__(self, app_title, models, **kwargs) self.columns = 3 def init_with_context(self, context): self.children.append(DefaultDashboard(), ) jmb_dashboard.register_group(MainDashboard, 'quotation') admin_tools.dashboard.register(DefaultAppDashboard, 'quotation')