|
GrappelliAdminToolsSetup_2_2
Grappelli is not only a skin for django.contrib.admin. It is a skin for django-admin-tools too. Thus grappelli has it's old bookmarks feature back. Additionally you can customize the order and hierarchy of the admin index and app_index, add modules like "Recent Actions", and some more very nice features from admin-tools. Basically it works like described in the admin-tools docu http://packages.python.org/django-admin-tools/ but some things are different or not (yet) supported when using admin-tools with grappelli... Note: We suggest to work around the current limitations (compared to the original feature set of admin_tools). But patches to add admin_tools features to grappelli are very welcome. special/additional css classes
#poject's/dashboard.py
class CustomIndexDashboard(Dashboard):
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'],
))
...supported with grappelliHere a list of all admin_tools features that work with grappelli as skin:
not supported with grappelliFeatures not (yet) implemented in grappelli. some of them will be implemented some of them not. we will announce new features asap.
| |