Skip to content

KUWAITNET/wagtail-django-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wagtail-django-admin

Installation

from GitHub:

$ pip install -e git+https://github.com/KuwaitNET/wagtail-django-admin.git#egg=wagtail_django_admin

Usage

  1. Add wagtail_django_admin before wagtail.admin at the end of your INSTALLED_APPS.
INSTALLED_APPS = [
   ...
   "wagtail.admin",
   "wagtail_django_admin",
   "django.contrib.admin",
   "wagtail.contrib.modeladmin",
]
  1. In settings.py you can add the following settings (OPTIONAL). If not defined all apps and all models are considered
WAGTAIL_ADMIN_CUSTOM_MENU = {
   "<app_name>": [..., "<model_name>", ...]
}

More advanced option if you want to control the order and icon_name

WAGTAIL_ADMIN_CUSTOM_MENU = {
   "<app_name>": {
      ...
      {
         "order": 200,
         "icon_name": "list-ul",
         "models": {
            ...
            "<model_name>": {"order": 200, "icon_name": "mail"},
            ...
         },
      }
      ...
   }
}
  1. In project urls.py add the following line:
path("^wagtail_django_admin/", include("wagtail_django_admin.urls", "wagtail_django_admin")),

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published