def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.ModelList( title = _('Shop Details'), models = ( 'market.models.Brand', 'market.models.Shop', 'market.models.Person', 'market.models.ContactDetails', ), ) ) self.children.append( modules.ModelList( title = _('Item Details'), models = ( 'market.models.Item', 'market.models.ItemType', 'market.models.Category', 'market.models.Characteristic', 'market.models.Measurement', ), ) ) self.children.append( modules.ModelList( title = _('Order Details'), models = ( 'market.models.Order', 'market.models.OrderItem', ), ) ) self.children.append( modules.ModelList( title = _('Delivery Details'), models = ( 'BestOperator.models.Delivery', 'BestOperator.models.DeliveryDetails', ), ) ) self.children.append( modules.ModelList( title = _('Payment Details'), models = ( 'BestOperator.models.Payment', 'BestOperator.models.PaymentDetails', ), ) ) self.children.append( modules.ModelList( title = _('Supplementary'), models = ( 'BestOperator.models.Directory', ), ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append an app list module for "Administration" self.children.append(modules.ModelList( title=_('Administration'), include_list=('django.contrib.auth.models.User', 'django.contrib.flatpages.models.FlatPage'), )) self.children.append(modules.ModelList( title=_('Bidding'), models=[ 'bidding.models.Auction', 'bidding.models.Item', 'bidding.models.BidPackage', 'bidding.models.ConvertHistory', 'bidding.models.FBOrderInfo', 'bidding.models.ConfigKey', ] )) # append an app list module for "Applications" self.children.append(modules.AppList( title=_('Applications'), exclude_list=('django.contrib', 'bidding', 'django_facebook', 'registration', 'chat.models.ChatUser'), ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append(modules.LinkList( title=_('Media Management'), css_classes=['column_1'], children=[ { 'title': _('Django FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, 'description': 'Python programming language rocks !', }, ] )) self.children.append(modules.AppList( title=_('User...'), models=('django.contrib.auth.models.User',), css_classes=['column_1', 'collapse', 'open'], )) self.children.append(modules.AppList( title=_('Administration'), include_list=('django.contrib',), css_classes=['column_1', 'collapse', 'closed'], )) self.children.append(modules.AppList( title=_('Administration'), exclude_list=('django.contrib',), css_classes=['column_1', 'collapse', 'closed'], ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.Group( title='Main', display='tabs', children=[ modules.ModelList(title='Основное', models=( 'appmain.models.ProjectConfig', 'appmain.models.Feedback', )), modules.ModelList( title='Каталог', models=( 'appcatalogs.models.Category', 'appcatalogs.models.Product', 'appcatalogs.models.Brand', 'appcatalogs.models.VolumeDesignation', )), modules.ModelList( title='Статические страницы', models=( 'apps.general.models.Slider', 'apps.general.models.FeedBack', 'django.contrib.flatpages.*', # 'django.contrib.sites.*', ), ), ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.AppList( title=_('Applications'), exclude=('django.contrib.*', ), )) # append an app list module for "Administration" self.children.append( modules.AppList( title=_('Administration'), models=('django.contrib.*', ), )) # append a recent actions module self.children.append( modules.RecentActions(title=_('Recent Actions'), limit=5)) self.children.append( modules.RecentActions(title='Django CMS recent actions', include_list=( 'cms.page', 'cms.cmsplugin', ))) self.children.append( modules.Feed(title=_('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.ModelList( title=u'Пользователи', models=('django.contrib.auth.*', ), )) self.children.append( modules.Group(title=u"Статистика", display="tabs", children=[ modules.ModelList( title=u'Товары', models=('shop.models.*', ), ), modules.ModelList( title=u'Заказы', models=('orders.models.*', ), ), ])) self.children.append((modules.Group( title=u"Товары", display="tabs", children=[ modules.ModelList(title=u"Категории", models=('shop.models.category', )), ]))) # append a recent actions module self.children.append( modules.RecentActions(title='Последние действия', limit=15))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append(modules.LinkList( _(u'Relátorios'), #layout='inline', draggable=False, deletable=False, collapsible=False, children=[ [_(u'Relário Geral'), reverse('pynetbanking:generalreportt')], ] )) # append an app list module for "Applications" self.children.append(modules.AppList( _('Applications'), exclude=('django.contrib.*',), )) # append an app list module for "Administration" self.children.append(modules.AppList( _('Administration'), models=('django.contrib.*',), )) # append a recent actions module self.children.append(modules.RecentActions(_('Recent Actions'), 5)) """# append a feed module
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.columns = 1 self.children.append(modules.Group( title="", display="tabs", css_classes=['column_1', 'open'], children=[ modules.ModelList( title='Models', ) ] )) self.children.append( modules.LinkList( title=_('Media'), children=[ { 'title': _('File Browser'), 'url': '/admin/filebrowser/browse/', 'external': False, 'description': 'Manage uploaded files', } ], css_classes=['column_2', 'open'], ) ) self.children.append( modules.RecentActions( title=_('Recent Actions'), css_classes=['column_2', 'open'], limit=6) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # dashboard.CustomIndexDashboard.__init__(self, **kwargs) #self.columns = 3 self.title = 'Администрирование ОКСИОН' self.children.append( modules.ModelList( title = u'Системные', models=( 'videoclient.models.Balancer', 'videoclient.communicator.models.Communicator', 'videoarchive.va.models.VaArchive', ), ), ) self.children.append( modules.ModelList( title = u'Настройки', models=( 'videoclient.models.DefaultParams', 'videoclient.videoarchive.models.Week', ), ) ) self.children.append( modules.ModelList( title = u'Переводы', models=( 'videoclient.models.Translation', 'videoclient.models.Language', 'videoclient.models.Group', ), ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # География self.children.append( modules.ModelList( title=u'География', models=( 'app.models.geography.Country', 'app.models.geography.Region', 'app.models.geography.City', ), ) ) # Реклама self.children.append( modules.ModelList( title=u'Реклама', models=( 'app.models.ads.Course', ), ) ) # Специальности self.children.append( modules.ModelList( title=u'Специальности', models=( 'app.models.fgos.TrainingDirection', 'app.models.fgos.TrainingDirectionGroup', 'app.models.specialities.Speciality', 'app.models.specialities.SpecialityGroup', ), ) ) # Образование self.children.append( modules.ModelList( title=u'Образование', models=( 'app.models.utils.Exam', 'app.models.universities.University', 'app.models.universities.Rating', ), ) ) # О нас self.children.append( modules.ModelList( title=u'О нас', models=( 'app.models.utils.Assistant', ), ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append an app list module for "Applications" self.children.append(modules.AppList( title= _(u'Applikationen'), )) # append a recent actions module self.children.append(modules.RecentActions( title= _(u'Letzte Aktionen'), limit=5, )) try: main_page = reverse('index') except: main_page = '/' cildren = [{'title': _(u'Hauptseite'), 'url': main_page}, {'title': _(u'Passwort wechseln'), 'url': reverse('admin:password_change')}, ] if 'rosetta' in settings.INSTALLED_APPS: cildren.append({'title': _(u'Übersetzen'), 'url': reverse('rosetta-home')}) cildren.append({'title': _(u'Django Dokumentation'), 'url': 'https://docs.djangoproject.com/'}) # append a link list module for "quick links" self.children.append(modules.LinkList( title='Quick links', draggable=True, deletable=True, collapsible=True, children=cildren )) stats_modules = get_statistics_modules() if len(stats_modules) == 1: sm = StatisticsModule() sm.module = stats_modules[0] self.children.append(sm) else: children = [] for statmod in stats_modules: sm = StatisticsModule() sm.module = statmod children.append(sm) self.children.append(modules.Group( title=_(u'Statistiken'), display="tabs", children=children ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # will only list the django.contrib apps self.children.append( modules.Feed(title=_('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append an app list module for "Administration" self.children.append(modules.AppList( title=_('Administration'), include_list=('django.contrib',), css_classes=['collapse', 'open'], )) # append an app list module for "Applications" self.children.append(modules.AppList( title=_('Applications'), exclude_list=('django.contrib',), css_classes=['collapse', 'open'], )) #append a link list module for "quick links" self.children.append(modules.LinkList( column=2, title=_('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Filebrowser'), 'url': reverse('fb_browse'), }, { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Markdown: Syntax'), 'url': 'http://daringfireball.net/projects/markdown/syntax', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Logout'), 'url': reverse('admin:logout') }, ] )) if not OFFLINE: # append a feed module self.children.append(modules.Feed( column=2, title=_('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5 ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append(modules.AppList( title= _(u'Приложения'), exclude=('django.contrib.auth.*',), )) self.children.append(modules.RecentActions( title=_(u'Последние действия'), limit = 5 ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.ModelList( title=u'Пользователи', models=( 'django.contrib.auth.*', 'my_accounts.models.Profile', ), ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append( modules.LinkList(title=_('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ])) # append an app list module for "Applications" self.children.append( modules.AppList( title=_('Applications'), exclude_list=('django.contrib', ), )) # append an app list module for "Administration" self.children.append( modules.AppList( title=_('Administration'), include_list=('django.contrib', ), )) # # append a recent actions module # self.children.append(RecentActionsDashboardModule( # title=_('Recent Actions'), # limit=5 # )) # # # append a feed module # self.children.append(FeedDashboardModule( # title=_('Latest Web Development Activities'), # feed_url='http://www.pivotaltracker.com/user_activities/de98454d195bc113ba489ff01ae2673a', # limit=5 # )) self.children.extend(get_memcache_dash_modules()) self.children.extend(get_varnish_dash_modules()) self.children.extend(get_rss_dash_modules())
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append( modules.LinkList( _("Quick links"), layout="inline", draggable=False, deletable=False, collapsible=False, children=[ [_("Return to site"), "/"], [_("Change password"), reverse("admin:password_change")], [_("Log out"), reverse("admin:logout")], ], ) ) # append an app list module for "Applications" self.children.append(modules.AppList(_("Applications"), exclude=["django.contrib.*"])) # append an app list module for "Administration" self.children.append(modules.AppList(_("Administration"), models=("django.contrib.*",))) self.children.append( modules.ModelList( "Test1", ["django.contrib.auth.*", "*.Site", "*.Foo"], ["django.contrib.auth.models.User", "test_app.*"] ) ) # append a recent actions module self.children.append(modules.RecentActions(_("Recent Actions"), 5)) # append another link list module for "support". self.children.append( modules.LinkList( _("Support"), children=[ {"title": _("Django documentation"), "url": "http://docs.djangoproject.com/", "external": True}, { "title": _('Django "django-users" mailing list'), "url": "http://groups.google.com/group/django-users", "external": True, }, {"title": _("Django irc channel"), "url": "irc://irc.freenode.net/django", "external": True}, ], ) ) self.children.append( modules.Group( title="Test group", children=[modules.ModelList("Tab 1", ["django.contrib.*"]), modules.ModelList("Tab 2", ["test_app.*"])], ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append( modules.LinkList( title="Quick links", layout="inline", draggable=False, deletable=False, collapsible=False, children=[ {"title": "Return to site", "url": "/"}, {"title": "Change password", "url": reverse("admin:password_change")}, {"title": "Log out", "url": reverse("admin:logout")}, ], ) ) # append an app list module for "Applications" self.children.append( modules.AppList(title="Applications", exclude=("django.contrib*", "piston*", "djcelery*", "actstream*")) ) # append an app list module for "Administration" self.children.append(modules.AppList(title="Administration", models=("django.contrib*",))) # append a recent actions module self.children.append(modules.RecentActions(title="Recent Actions", limit=5)) # append a feed module self.children.append( modules.Feed( title="Teerace development news", feed_url="https://github.com/chaosk/teerace/commits/master.atom", limit=5, ) ) # append another link list module for "support". self.children.append( modules.LinkList( title="Support", children=[ {"title": "Django documentation", "url": "http://docs.djangoproject.com/", "external": True}, { "title": "Teerace GitHub issues", "url": "https://github.com/chaosk/teerace/issues", "external": True, }, {"title": "Teerace irc channel", "url": "irc://irc.quakenet.org/teerace", "external": True}, ], ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append(modules.AppList( title='PySIS', include_list=('accounts', 'django.contrib.auth'), css_classes=['column_1', 'collapse', 'open'], )) # append an app list module for "Applications" self.children.append(modules.AppList( title='Applications', exclude_list=('django.contrib',), css_classes=['column_1', 'collapse', 'closed'], )) # append an app list module for "Administration" self.children.append(modules.AppList( title='Administration', include_list=('django.contrib',), css_classes=['column_1', 'collapse', 'closed'], )) # append a link list module for "quick links" self.children.append(modules.LinkList( title='Quick links', css_classes=['column_2', 'collapse', 'open'], layout='inline', draggable=False, deletable=False, collapsible=True, children=[ { 'title': 'Return to site', 'url': '/', }, { 'title': 'Change password', 'url': reverse('admin:password_change'), }, { 'title': 'Log out', 'url': reverse('admin:logout') }, ] )) # append a recent actions module self.children.append(modules.RecentActions( title='Recent Actions', css_classes=['column_2', 'collapse', 'open'], limit=5, ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append(modules.LinkList( title=_('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ] )) # append an app list module for "Applications" self.children.append(modules.AppList( title=_('Applications'), exclude_list=('django.contrib',), )) # append an app list module for "Administration" self.children.append(modules.AppList( title=_('Administration'), include_list=('django.contrib',), )) # # append a recent actions module # self.children.append(RecentActionsDashboardModule( # title=_('Recent Actions'), # limit=5 # )) # # # append a feed module # self.children.append(FeedDashboardModule( # title=_('Latest Web Development Activities'), # feed_url='http://www.pivotaltracker.com/user_activities/de98454d195bc113ba489ff01ae2673a', # limit=5 # )) self.children.extend(get_memcache_dash_modules()) self.children.extend(get_varnish_dash_modules()) self.children.extend(get_rss_dash_modules())
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append(modules.LinkList( title=_('Quick links'), layout='inline', #draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ] )) # append an app list module for "Applications" self.children.append(modules.AppList( title=_('Applications'), exclude_list=('django.contrib', 'icqbot'), )) # append an app list module for "Administration" #self.children.append(modules.AppList( # title=_('Administration'), # include_list=('django.contrib',), # exclude_list=('django.contrib.sites.models.Site',), #)) self.children.append( modules.ModelList( title = u'Авторизация и аутентификация', models=( 'django.contrib.auth.*', ), ) ) # append a recent actions module self.children.append(modules.RecentActions( title=_('Recent Actions'), limit=5 ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) #site_name = get_admin_site_name(context) self.children.append(modules.ModelList( u'Avião', ('flight.models.Flight', 'flight.models.Outage', 'flight.models.OperationalBase', ), )) self.children.append(modules.ModelList( u'Despesas', ('expense.models.DirectExpense', 'expense.models.VariableExpense', 'expense.models.FixedExpense', 'expense.models.HourlyMantainance', 'expense.models.ScheduleMantainance', 'expense.models.EventualMantainance', ), )) self.children.append(modules.ModelList( u'Finanças', ('finance.models.Interpayment', 'finance.models.Expense', 'finance.models.ExpenseCategory', ), )) self.children.append(modules.LinkList( u'Relatórios', children=( { 'title': 'Relatório completo', 'url': '/admin/finance/aircraft.xls', 'external': False, 'description': 'Baixar relatório em excel contendo das as despesas, responsabilidades e pagamentos', }, ) )) self.children.append(modules.ModelList( _('Administration'), ('django.contrib.auth.models.User', 'flight.models.Person', ), )) self.children.append(modules.RecentActions(_('Recent Actions'), 15))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append an app list module for "Applications" self.children.append( modules.AppList( title='Applications', exclude_list=('django.contrib', ), css_classes=['column_1', 'collapse', 'open'], )) # append an app list module for "Administration" self.children.append( modules.AppList( title='Administration', include_list=('django.contrib', ), css_classes=['column_1', 'collapse', 'closed'], )) # append a link list module for "quick links" self.children.append( modules.LinkList(title='Quick links', css_classes=['column_2', 'collapse', 'open'], layout='inline', draggable=False, deletable=False, collapsible=True, children=[ { 'title': 'Return to site', 'url': '/', }, { 'title': 'Change password', 'url': reverse('admin:password_change'), }, { 'title': 'Log out', 'url': reverse('admin:logout') }, ])) # append a recent actions module self.children.append( modules.RecentActions( title='Recent Actions', css_classes=['column_2', 'collapse', 'open'], limit=5, ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append(modules.ModelList( title = _('Shop'), models=( 'shop.models.Order', 'shop.models.Product', 'shop.models.Category', 'shop.models.Delivery', 'django.contrib.auth.models.User', ), )) self.children.append(modules.ModelList( title = _('Users'), models=( 'django.contrib.auth.models.User', #'users.models.UserProfile', ), )) self.children.append(modules.ModelList( title = _('Payment modules'), models=( 'webmoney.models.PaymentSettings', 'prochange.models.PaymentSettings', ), )) self.children.append(modules.LinkList( layout='stacked', children=( { 'title': _('Koala documentation'), 'url': 'http://koala.deeper4k.ru/', 'external': True, }, { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list') , 'url': 'http://groups.google.ru/group/django-russian', 'external': True, }, ) )) """
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.ModelList( title=('Новости портала'), models=('news.models.News',), ) ) self.children.append( modules.ModelList( title=('Работники Профкома'), models=('ourteam.models.Worker',), ) ) self.children.append( modules.ModelList( title=('Работники Профкома'), models=('miet_union.models.HelpForProforg',), ) ) self.children.append( modules.ModelList( title=('Пользователи и группы'), models=('django.contrib.*',), ), ) self.children.append(modules.Group( title=("Документы"), display="tabs", children=[ modules.ModelList( title=('Студенту'), models=('documents.models.HelpForProforg', 'documents.models.HelpForStudentProforg', 'documents.models.TheMainActivitiesOfProforg',), ), modules.ModelList( title=('Документы'), models=('documents.models.ProtectionOfPersonalInformation', 'documents.models.NormativeDocuments', 'documents.models.CommissionsOfProfcom', 'documents.models.UsefulLinks',), ), ] ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.ModelList( title=('Новости портала'), models=('miet_union.models.News', ), )) self.children.append( modules.ModelList( title=('Почта для рассылки'), models=('miet_union.models.EmailSubscription', ), )) self.children.append( modules.ModelList( title=('Все зарегистрированные пользователи сайта'), models=('miet_union.models.User', ), )) self.children.append( modules.ModelList( title=('Работники Профкома'), models=('miet_union.models.Worker', ), )) self.children.append( modules.Group( title=("Документы"), display="tabs", children=[ modules.ModelList( title=('Студенту'), models=( 'documents.models.HelpForProforg', 'documents.models.HelpForStudentProforg', 'documents.models.TheMainActivitiesOfProforg', ), ), modules.ModelList( title=('Документы'), models=( 'documents.models.ProtectionOfPersonalInformation', # noqa 'documents.models.NormativeDocuments', 'documents.models.CommissionsOfProfcom', 'documents.models.UsefulLinks', ), ), ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append(modules.Group( title=u'Портал', children=[ modules.ModelList(u'Статьи',['*.Article']), modules.ModelList(u'Биографии',['*.Biography']), modules.ModelList(u'Пресса',['*.Press']), modules.ModelList(u'Фото',['photologue.models.Gallery','photologue.models.Photo']), modules.ModelList(u'Календарь',['schedule.models.calendars.Calendar']), modules.ModelList(u'Администрирование',['django.contrib.*']), ] )) #append a recent actions module self.children.append( modules.RecentActions(('Recent Actions'), 5) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.ModelList( title = u'Галереи', models=( 'gallerymixers.models.GalleryMixer', 'gallerycountertops.models.GalleryCountertops', 'gallerysink.models.GallerySink', 'gallerycolors.models.GalleryColors', ), ) ) self.children.append( modules.ModelList( title = u'Пользователи', models=( 'django.contrib.auth.*', 'my_accounts.models.Profile', ), ) ) self.children.append( modules.ModelList( title = u'Управление сайтом', models=( 'cms.models.pagemodel.Page', 'cms.plugins.snippet.models.Snippet', ), ) ) self.children.append( modules.ModelList( title = u'Формы', models=( 'form_designer.models.FormLog', 'form_designer.models.FormDefinition', ), ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # we want a 3 columns layout self.columns = 3 # append an app list module for "Applications" self.children.append(AppListDashboardModule( title=_('Applications'), exclude_list=('django.contrib',), )) # append an app list module for "Administration" self.children.append(AppListDashboardModule( title=_('Administration'), include_list=('django.contrib',), )) # append a recent actions module self.children.append(RecentActionsDashboardModule( enabled=False, title=_('Recent Actions'), limit=5 )) self.children.append(modules.Group( title="My group", display="tabs", children=[ modules.AppList( title='Administration', models=('django.contrib.*',) ), modules.AppList( title='Applications', exclude=('django.contrib.*',) ) ] ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append(modules.LinkList( title=_('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ] )) # append an app list module for "Applications" self.children.append(MyDashboardAppList( title=u"Управление данными", exclude_list=('django.contrib',"piston",), )) # append an app list module for "Administration" self.children.append(modules.ModelList( title=_('Administration'), models=('django.contrib.*',), )) # append a recent actions module self.children.append(modules.RecentActions( title=_('Recent Actions'), limit=10 ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append( modules.LinkList( _("Quick links"), layout="inline", draggable=False, deletable=False, collapsible=False, children=[ [_('<i class="icon-plus"></i> Return to site'), "/", "action"], [_('<i class="icon-edit"></i> Change password'), reverse("admin:password_change"), "action"], # [_('Log out'), reverse('admin:logout'), 'action'], ], position="right", ) ) # append an app list module for "Applications" # self.children.append(modules.AppList( # _('Applications'), # exclude=['django.contrib.*'], # )) # append an app list module for "Administration" # self.children.append(modules.AppList( # _('Administration'), # models=('django.contrib.*',), # )) # self.children.append(StatsDashboardModule( # _('Statistics'), # position = 'left' # )) # append a recent actions module self.children.append(modules.RecentActions(_("Recent Actions"), 10, position="right"))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) tech_models_list = ( 'djcelery.*', 'authentication.*', 'notifications.*', 'social_auth.*', 'services.*', ) exclude=('django.contrib.sites.*', 'django.contrib.auth.models.Group') self.children = [ modules.AppList(title=u'Контент', exclude=tech_models_list+exclude), modules.AppList(title=u'Приложения', models=tech_models_list, exclude=exclude), modules.Group(title=u'Статистика', display='tabs', children=[ ContentStats(), EmailStats(), ]), ]
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.columns = 2 self.children.append(ModelList( title = u'Blog', deletable=False, draggable=False, collapsible=True, include_list=('techblog', 'taggit', 'threadedcomments',) )) self.children.append(ModelList( title = u'Authors and Groups', deletable=False, draggable=False, collapsible=True, include_list=('django.contrib.auth', 'techblog.models.UserProfile') )) self.children.append(modules.RecentActions( title=u'Recent changes', draggable=False, deletable=False, collapsible=True ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) #self.columns = 3 self.title = 'Видео архив' self.children.append( modules.ModelList( title = u'Переводы', models=( 'videoarchive.models.Language', 'videoarchive.models.Group', 'videoarchive.models.Translation', ), ), ) self.children.append( modules.ModelList( title = u'Настройки', models=( 'videoarchive.models.Settings', # 'videoarchive.communicator.models.Communicator', 'videoarchive.va.models.VaArchive', # 'videoarchive.va.models.VaCamera', 'videoarchive.models.Signals', 'videoarchive.models.Week', ), ) ) self.children.append( modules.ModelList( title = u'Временные', models=( 'videoarchive.persons.models.Person', 'videoarchive.persons.models.Document', ), ) )
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append(modules.LinkList( title=_('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ] )) # append an app list module for "Applications" self.children.append(modules.AppList( title=_('Applications'), exclude_list=('django.contrib',), )) # append an app list module for "Administration" self.children.append(modules.AppList( title=_('Administration'), include_list=('django.contrib',), )) # append a recent actions module self.children.append(modules.RecentActions( title=_('Recent Actions'), limit=5 )) # append a feed module self.children.append(modules.Feed( title=_('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5 )) # append another link list module for "support". self.children.append(modules.LinkList( title=_('Support'), children=[ { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list'), 'url': 'http://groups.google.com/group/django-users', 'external': True, }, { 'title': _('Django irc channel'), 'url': 'irc://irc.freenode.net/django', 'external': True, }, ] ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs)
def __init__(self, **kwargs): Dashboard.__init__(**kwargs)
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # article = Article.objects.all() # # self.children.append( # MyModule( # title="Последние добавленные фильмы", # message=article # ) # ) self.children.append( modules.Group( title='Main', display='tabs', children=[ modules.ModelList(title='Web-site', models=( 'www.models.Profile', 'www.models.NewsProject', 'www.models.Articles', 'www.models.NewsMinecraft', 'www.models.NewFlatPage', )), modules.ModelList(title='Forum', models=('www.models.Profile', )), modules.ModelList( title='API', models=('www.models.Profile', ), ), # modules.ModelList( # title='Accounts', # models=( # 'django.contrib.auth.*', # ), # ), modules.ModelList( title='Static pages', models=( 'django.contrib.flatpages.*', 'django.contrib.sites.*', ), ), ])) # self.children.append( # modules.Group( # title='Files', # display='tabs', # children=[ # modules.ModelList( # title='Игры', # models=( # 'appfilm.models.Article', # 'appfilm.models.Genre', # 'appfilm.models.Compilation', # ) # ), # modules.ModelList( # title='Софт', # models=( # 'django.contrib.auth.*', # 'accounts.models.Profile', # ), # ), # modules.ModelList( # title='Книги', # models=( # 'django.contrib.auth.*', # 'accounts.models.Profile', # ), # ), # modules.ModelList( # title='Android / IOS', # models=( # 'django.contrib.auth.*', # 'accounts.models.Profile', # ), # ), # ] # ) # ) self.children.append( modules.ModelList(title='Пользователи', models=( 'django.contrib.auth.*', 'accounts.models.Profile', ))) self.children.append( modules.LinkList(title='Быстрые ссылки', children=[ { 'title': 'Forum', 'url': '/film/', 'external': False, 'attrs': { 'target': '_blank' }, }, { 'title': 'API', 'url': '/film/parser/', 'external': False, 'attrs': { 'target': '_blank' }, }, { 'title': '/accounts/login/', 'url': '/accounts/login/', 'external': False, 'attrs': { 'target': '_blank' }, }, ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.title = _('Site Administration') self.columns = 1
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # display="tabs", self.columns = ADMIN_TOOLS_INDEX_DASHBOARD_COLUMNS self.children.append(modules.Group( title="", display="tabs", children=[ modules.AppList( title='Requirements', include_list=('requirements', 'requirement_processing',) ), modules.AppList( title='Data Management', include_list=('client', 'candidate', 'job.data_management',) ), modules.AppList( title='Portal Administration', include_list=('django.contrib.sites', 'dashboardmods', 'portal',) ), modules.AppList( title='User Management', include_list=('django.contrib.auth',) ), modules.AppList( title='All Applications', exclude_list=('django.contrib', ) ) ] )) # # append an app list module for "Applications" # self.children.append(modules.AppList( # title=_('Applications'), # exclude_list=('django.contrib',), # )) # # # append an app list module for "Administration" # self.children.append(modules.AppList( # title=_('Administration'), # include_list=('django.contrib',), # )) # append a recent actions module self.children.append(modules.RecentActions( title=_('Recent Actions'), limit=5 )) # # append a feed module # self.children.append(modules.Feed( # title=_('Latest Django News'), # feed_url='http://www.djangoproject.com/rss/weblog/', # limit=5 # )) # # append another link list module for "support". # self.children.append(modules.LinkList( # title=_('Support'), # children=[ # { # 'title': _('Django documentation'), # 'url': 'http://docs.djangoproject.com/', # 'external': True, # }, # { # 'title': _('Django "django-users" mailing list'), # 'url': 'http://groups.google.com/group/django-users', # 'external': True, # }, # { # 'title': _('Django irc channel'), # 'url': 'irc://irc.freenode.net/django', # 'external': True, # }, # ] # )) # append another link list module for "support". news_db_list = News.objects.filter(expires_at__gte = datetime.today(), enabled = True ) news_list = [] for news in news_db_list: news_dict = { 'title' : news.title, 'url' : news.url, 'external' : True, } news_list.append(news_dict) self.children.append(modules.LinkList( title=_('Latest News'), children = news_list )) # append a link list module for "quick links" # self.children.append(modules.LinkList( # title=_('Quick links'), # layout='inline', # draggable=True, # deletable=True, # collapsible=True, # children=[ # { # 'title': _('Return to site'), # 'url': '/', # }, # { # 'title': _('Change password'), # 'url': reverse('admin:password_change'), # }, # { # 'title': _('Log out'), # 'url': reverse('admin:logout') # }, # ] # )) self.children.extend(get_memcache_dash_modules()) self.children.extend(get_varnish_dash_modules()) self.children.extend(get_rss_dash_modules())
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.ModelList( title=u'Пользователи', models=( 'django.contrib.auth.*', 'my_accounts.models.Profile', ), )) self.children.append( modules.Group( title=u"Управление сайтом", display="accordion", draggable=False, deletable=False, collapsible=False, children=[ modules.ModelList(title=u'Djcelery', models=( 'djcelery.models.CrontabSchedule', 'djcelery.models.IntervalSchedule', 'djcelery.models.PeriodicTasks', 'djcelery.models.TaskState', 'djcelery.models.WorkerState', )), modules.ModelList(title=u'Djkombu', models=( 'djkombu.models.Message', 'djkombu.models.Queue', )), modules.ModelList(title=u'CMS', models=( 'cms.models.pagemodel.Page', 'cms.plugins.snippet.models.Snippet', )), modules.ModelList(title=u'Пользователи', models=( 'django.contrib.auth.*', 'my_accounts.models.Profile', )), ])) self.children.append( modules.Group( title=u"RateForecast", display="accordion", draggable=False, deletable=False, collapsible=False, children=[ modules.ModelList( # title=u'RateForecast', models=( 'weather.models.Region', 'weather.models.Town', 'weather.models.MeteoCenter', 'weather.models.Town_MeteoCenter', 'weather.models.TimeUpdate', 'weather.models.GeneralHashtag', 'weather.models.ProvideData', 'weather.models.WData', 'weather.models.WLog', )), ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" #self.children.append(modules.LinkList( # title=_('Quick links'), # layout='inline', # draggable=False, # deletable=False, # collapsible=False, # css_classes=['column_1'], # children=[ # { # 'title': _('Return to site'), # 'url': '/', # }, # { # 'title': _('Change password'), # 'url': reverse('admin:password_change'), # }, # { # 'title': _('Log out'), # 'url': reverse('admin:logout') # }, # ] #)) try: # add link to filebrowser self.children.append( modules.LinkList(title=_('Media Management'), css_classes=['column_1'], children=[ { 'title': _('Django FileBrowser'), 'url': reverse("fb_browse"), 'external': False, }, ])) except NoReverseMatch: # seems like reverse("fb_browse") didn't worked # => filebrowser not installed pass # append an app list module for "Applications" self.children.append( modules.AppList( title=_('Applications'), css_classes=['column_1'], exclude_list=( 'django.contrib', 'colophon', ), )) # append an app list module for "Administration" self.children.append( modules.AppList( title=_('Administration'), css_classes=['column_3'], include_list=( 'django.contrib', 'colophon', ), )) # append a recent actions module self.children.append( modules.RecentActions(css_classes=['column_2'], title=_('Recent Actions'), limit=5)) # append a feed module self.children.append( modules.Feed(title=_('Latest Django News'), css_classes=['column_2'], feed_url='http://www.djangoproject.com/rss/weblog/', limit=5)) # append another link list module for "support". self.children.append( modules.LinkList( title=_('Support'), css_classes=['column_3'], children=[ { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list'), 'url': 'http://groups.google.com/group/django-users', 'external': True, }, { 'title': _('Django irc channel'), 'url': 'irc://irc.freenode.net/django', 'external': True, }, ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" #self.children.append(modules.LinkList( # title=_('Quick links'), # layout='inline', # draggable=False, # deletable=False, # collapsible=False, # css_classes=['column_1'], # children=[ # { # 'title': _('Return to site'), # 'url': '/', # }, # { # 'title': _('Change password'), # 'url': reverse('admin:password_change'), # }, # { # 'title': _('Log out'), # 'url': reverse('admin:logout') # }, # ] #)) try: # add link to filebrowser self.children.append(modules.LinkList( title=_('Media Management'), css_classes=['column_1'], children=[ { 'title': _('Django FileBrowser'), 'url': reverse("fb_browse"), 'external': False, }, ] )) except NoReverseMatch: # seems like reverse("fb_browse") didn't worked # => filebrowser not installed pass # append an app list module for "Applications" self.children.append(modules.AppList( title=_('Applications'), css_classes=['column_1'], exclude_list=('django.contrib',), )) # append an app list module for "Administration" self.children.append(modules.AppList( title=_('Administration'), css_classes=['column_1'], include_list=('django.contrib',), )) # append a recent actions module self.children.append(modules.RecentActions( css_classes=['column_2'], title=_('Recent Actions'), limit=5 )) # append a feed module self.children.append(modules.Feed( title=_('Latest koalixcrm News'), css_classes=['column_2'], feed_url='http://www.koalix.org/projects/koalixcrm/news.atom', limit=5 )) # append another link list module for "support". self.children.append(modules.LinkList( title=_('Support'), css_classes=['column_3'], children=[ { 'title': _('koalixcrm documentation'), 'url': 'http://docs.koalix.org/', 'external': True, }, { 'title': _('koalixcrm "koalixcrm-user" mailing list'), 'url': 'http://groups.google.com/group/koalixcrm-users', 'external': True, }, ] ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append(modules.LinkList( _(u'Быстрые ссылки'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ [_(u'Вернуться на сайт'), '/'], [_(u'Сменить пароль'), reverse('admin:password_change')], [_(u'Выйти'), reverse('admin:logout')], ] )) # append an app list module for "Applications" #self.children.append(modules.AppList( # _(u'Приложения'), # exclude=['django.contrib.*'], #)) # append an app list module for "Administration" #self.children.append(modules.AppList( # _('Administration'), # models=('django.contrib.*',), #)) # self.children.append(modules.ModelList( # 'Test1', # ['django.contrib.auth.*', '*.Site', '*.Foo'], # ['django.contrib.auth.models.User', 'test_app.*'] # )) # append a recent actions module self.children.append( modules.RecentActions(_('Recent Actions'), 5) ) # append another link list module for "support". #self.children.append(modules.LinkList( # _('Support'), # children=[ # { # 'title': _('Django documentation'), # 'url': 'http://docs.djangoproject.com/', # 'external': True, # }, # { # 'title': _('Django "django-users" mailing list'), # 'url': 'http://groups.google.com/group/django-users', # 'external': True, # }, # { # 'title': _('Django irc channel'), # 'url': 'irc://irc.freenode.net/django', # 'external': True, # }, # ] # )) self.children.append(modules.Group( title=u'Управление содержимым сайта', children=[ modules.ModelList( u'Справочники сайта', ['docs.models.Coll', 'docs.models.Doc', 'docs.models.Coll4doc'] # ['django.contrib.*'] ), modules.ModelList( u'Управление навигацией сайта', ['docs.models.Doctemp', 'docs.models.Tags'] ), ] ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append( modules.Group( title='Main', display='tabs', children=[ modules.ModelList(title='Товары', models=( 'apps.products.models.Category', 'apps.products.models.Manufacturer', 'apps.products.models.Country', 'apps.products.models.Product', 'apps.products.models.OtherInfo', )), modules.ModelList(title='Forum', models=('www.models.Profile', )), modules.ModelList( title='API', models=('www.models.Profile', ), ), # modules.ModelList( # title='Accounts', # models=( # 'django.contrib.auth.*', # ), # ), modules.ModelList( title='Static pages', models=( 'django.contrib.flatpages.*', 'django.contrib.sites.*', ), ), ])) self.children.append( modules.ModelList(title='Пользователи', models=( 'django.contrib.auth.*', 'accounts.models.Profile', ))) self.children.append( modules.LinkList(title='Быстрые ссылки', children=[ { 'title': 'Forum', 'url': '/film/', 'external': False, 'attrs': { 'target': '_blank' }, }, { 'title': 'API', 'url': '/film/parser/', 'external': False, 'attrs': { 'target': '_blank' }, }, { 'title': '/accounts/login/', 'url': '/accounts/login/', 'external': False, 'attrs': { 'target': '_blank' }, }, ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append( modules.LinkList(title="Quick links", layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': "Return to site", 'url': '/', }, { 'title': "Change password", 'url': reverse('admin:password_change'), }, { 'title': "Log out", 'url': reverse('admin:logout') }, ])) # append an app list module for "Applications" self.children.append( modules.AppList( title="Applications", exclude=('django.contrib*', 'piston*', 'djcelery*', 'actstream*'), )) # append an app list module for "Administration" self.children.append( modules.AppList( title="Administration", models=('django.contrib*', ), )) # append a recent actions module self.children.append( modules.RecentActions(title="Recent Actions", limit=5)) # append a feed module self.children.append( modules.Feed( title="Teerace development news", feed_url= 'https://github.com/chaosk/teerace/commits/master.atom', limit=5)) # append another link list module for "support". self.children.append( modules.LinkList( title="Support", children=[ { 'title': "Django documentation", 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': "Teerace GitHub issues", 'url': 'https://github.com/chaosk/teerace/issues', 'external': True, }, { 'title': "Teerace irc channel", 'url': 'irc://irc.quakenet.org/teerace', 'external': True, }, ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append(modules.AppList( _('Dashboard Stats Settings'), models=('admin_tools_stats.*',), )) # append a link list module for "quick links" self.children.append(modules.LinkList( _('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ [_('Return to site'), '/'], [_('Change password'), reverse('admin:password_change')], [_('Log out'), reverse('admin:logout')], ] )) # append an app list module for "Applications" self.children.append(modules.AppList( _('Applications'), models=[ 'mce_django_app.models.common.*', 'mce_django_app.models.azure.*', 'mce_django_app.models.aws.*', ] )) # append an app list module for "Administration" self.children.append(modules.AppList( _('Administration'), models=('django.contrib.*',), )) # self.children.append(modules.ModelList( # ['django.contrib.auth.*', '*.Site', '*.Foo'], # ['django.contrib.auth.models.User', 'test_app.*'] # )) # append a recent actions module self.children.append( modules.RecentActions(_('Recent Actions'), 5) ) # append another link list module for "support". self.children.append(modules.LinkList( _('Support'), children=[ { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list'), 'url': 'http://groups.google.com/group/django-users', 'external': True, }, { 'title': _('Django irc channel'), 'url': 'irc://irc.freenode.net/django', 'external': True, }, ] )) self.children.append(modules.Group( title='Test group', children=[ modules.ModelList( 'Common', ['mce_django_app.models.common.*'] ), modules.ModelList( 'Azure', ['mce_django_app.models.azure.*'] ), ] ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.columns = 3 self.title = "FUN!" # append a link list module for "quick links" self.children.append(modules.LinkList( title=_('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ], column=3, )) # self.children.append(modules.ModelList( # title=_('People'), # models = ('profiles.models.Person','profiles.models.FacultyMember','profiles.models.Student'), # )) # append an app list module for "Applications" self.children.append(modules.AppList( title=_('Content'), exclude_list=('datamining.apps.importer','datamining.apps.cv','piston','basic.inlines','django.contrib','feedjack','tagging'), column=1, css_classes=['collapse', 'open'], )) # append an app list module for "Administration" self.children.append(modules.AppList( title=_('Administration'), include_list=('datamining.apps.importer','datamining.apps.cv','piston','basic.inlines','django.contrib','feedjack','tagging'), column=1, css_classes=['collapse', 'open'], )) # append a recent actions module self.children.append(modules.RecentActions( title=_('Recent Actions'), limit=5, column=2, )) # append a feed module self.children.append(modules.Feed( title=_('Latest DataMYNE Development'), feed_url='http://mining.parsons.edu/trac/timeline?ticket=on&changeset=on&milestone=on&wiki=on&max=50&daysback=90&format=rss', limit=5, column=3, )) # append another link list module for "support". self.children.append(modules.LinkList( title=_('Support'), children=[ { 'title': _('DataMYNE Trac'), 'url': 'http://mining.parsons.edu/trac/', 'external': True, }, { 'title': _('File a Trac ticket'), 'url': 'http://mining.parsons.edu/trac/newticket', 'external': True, }, { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, ], column=3, ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append( modules.LinkList(title=_('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ])) # append an app list module for "Applications" self.children.append( modules.AppList( title=_('Applications'), exclude_list=('django.contrib', ), )) # append an app list module for "Administration" self.children.append( modules.AppList( title=_('Administration'), include_list=('django.contrib', ), )) self.children.append( modules.ModelList( title='Test1', models=['django.contrib.auth.*', '*.Site', '*.Foo'], exclude=['django.contrib.auth.models.User', 'test_app.*'])) # append a recent actions module self.children.append( modules.RecentActions(title=_('Recent Actions'), limit=5)) # append another link list module for "support". self.children.append( modules.LinkList( title=_('Support'), children=[ { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list'), 'url': 'http://groups.google.com/group/django-users', 'external': True, }, { 'title': _('Django irc channel'), 'url': 'irc://irc.freenode.net/django', 'external': True, }, ]))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) # append a link list module for "quick links" self.children.append(modules.LinkList( _('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ [_('Return to site'), '/'], [_('Change password'), reverse('admin:password_change')], [_('Log out'), reverse('admin:logout')], ] )) # append an app list module for "Applications" self.children.append(modules.AppList( _('Applications'), exclude=['django.contrib.*'], )) # append an app list module for "Administration" self.children.append(modules.AppList( _('Administration'), models=('django.contrib.*',), )) self.children.append(modules.ModelList( 'Test1', ['django.contrib.auth.*', '*.Site', '*.Foo'], ['django.contrib.auth.models.User', 'test_app.*'] )) # append a recent actions module self.children.append( modules.RecentActions(_('Recent Actions'), 5) ) # append another link list module for "support". self.children.append(modules.LinkList( _('Support'), children=[ { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list'), 'url': 'http://groups.google.com/group/django-users', 'external': True, }, { 'title': _('Django irc channel'), 'url': 'irc://irc.freenode.net/django', 'external': True, }, ] )) self.children.append(modules.Group( title='Test group', children=[ modules.ModelList( 'Tab 1', ['django.contrib.*'] ), modules.ModelList( 'Tab 2', ['test_app.*'] ), ] ))