1. David Jean Louis
  2. django-admin-tools
Issue #82 wontfix

Positioning modules within columns

Anonymous created an issue

It would be great to have a way to arrange the modules within the columns, instead of having them automatically assigned depending on the modulo.

I dont use the drag&drop and closable features so I came up with the following to achieve my required positioning:

self.children.append(DummyModule())

modules/dummy.py {{{

!python

from admin_tools.dashboard.modules import DashboardModule

class DummyModule(DashboardModule): def is_empty(self): return False

def render_css_classes(self):
    return 'dashboard-module dummy'

}}}

{{{

!css

.dummy { display:none; } }}}

Not very elegant, but it does the job for now, I'm sure a better API is achievable.

Comments (2)

  1. Log in to comment