When I set Dashboard.columns to a value greater than 2, custom dashboardmodules are rendered narrower than they should appear and with lots of icons superimpressed. I am adding 1 DashboardModule and 2 LinkListDashboardModule-s to the CustomIndexDashboard using init_with_context.
class CustomIndexDashboard(Dashboard): """ Custom index dashboard for cruscotto. """ def __init__(self, **kwargs): kwargs['columns'] = 4 kwargs['title'] = 'Habble' Dashboard.__init__(self, **kwargs) # 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',), )) def init_with_context(self, context): """ Use this method if you need to access the request context. """ utente = context['request'].user if utente.username in allowed_users: # code commented out [...] self.children.append(DashboardModule( title='block #1', children=children_1 )) self.children.append(LinkListDashboardModule( title='block 2', children=children_2 )) self.children.append(LinkListDashboardModule( title='block 3', children=children_3 )) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.