-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Cuong Nguyen edited this page Oct 5, 2024
·
3 revisions
pip install git+https://github.com/cuongnb14/[email protected]#egg=django-admin-extended
# Install app, install before django.contrib.admin
INSTALLED_APPS = [
'fontawesomefree',
'admin_extended',
'django.contrib.admin',
...
]
ADMIN_EXTENDED = {
'MENU_APP_ORDER': ['user', 'auth'],
'MENU_MODEL_ORDER': ['User', 'Group'],
'APP_ICON': {
'user': 'fas fa-user',
'auth': 'fas fa-users',
},
'MODEL_ADMIN_TABBED_INLINE': True,
'RAW_ID_FIELDS_AS_DEFAULT': False,
}
-
MENU_APP_ORDER
: change order of app at left sidebar -
MENU_MODEL_ORDER
: change order of model at left sidebar -
APP_ICON
: custom icon of menu app use fontawesome v5 (https://fontawesome.com/v5.15/icons?d=gallery&p=2&m=free) -
MODEL_ADMIN_TABBED_INLINE
: use tab for model inline. Default is True -
RAW_ID_FIELDS_AS_DEFAULT
: useraw_id_fields
(orautocomplete_fields
if related model havesearch_fields
) as default for related fields instead of select box