colums = 3 and children = 4

19 views
Skip to first unread message

Vittorino Parenti

unread,
Feb 2, 2012, 5:00:23 AM2/2/12
to django-admin-tools
Hi,
if set colums = 3 and append more of 3 children my dashboard doesn't
show a correct template.

Example:

from admin_tools.dashboard import modules, Dashboard
class OfficeIndexDashboard(Dashboard):
def __init__(self, **kwargs):
super(OfficeIndexDashboard, self).__init__(**kwargs)
self.columns = 3

def init_with_context(self, context):
self.children.append(CustomerProcedures(),),
self.children.append(SupplierProcedures(),),
self.children.append(CustomerQuotations(),),
self.children.append(modules.RecentActions(_('Recent
Actions'), 5)),

Thanks,
Vittorino

Vittorino Parenti

unread,
Feb 2, 2012, 5:34:15 AM2/2/12
to django-admin-tools
Sorry,
I read documentation:

"If your layout seems to be broken or you have problems with included
javascript files, you should try to reset your dashboard preferences"

mysql/psql> truncate admin_tools_dashboard_preferences;

Thanks,
Vittorino

David Jean Louis

unread,
Feb 2, 2012, 6:08:07 AM2/2/12
to django-ad...@googlegroups.com
Yeah, that's a bit tricky...
We need to fix that !

--
David

Le 02/02/2012 11:34, Vittorino Parenti a �crit :

Reply all
Reply to author
Forward
0 new messages