Skip to main content

Model Admin extension that utilizes the Wagtail collections

Project description

Collection Model Admin


pip install wagtail-collectionmodeladmin


Checkout this repo, create a local virtual environment and install dependencies:

pip install -e .

Create a new demo wagtail project:

wagtail start demo

We will use the home app as the base for our demo. Add a new Model in demo/home/

from django.db import models

from wagtail.core.models import CollectionMember

class Demo(CollectionMember, models.Model):
    demo_field = models.CharField()

Add the wagtail.contrib.modeladmin to the demo INSTALLED_APPS at demo/demo/settings/


Create the wagtail hooks that will inject the model admin in demo/home/

from wagtail.contrib.modeladmin.options import modeladmin_register

from collectionmodeladmin.base import CollectionModelAdmin
from home.models import Demo

class DemoModelAdmin(CollectionModelAdmin):
    model = Demo


Then as usual make migrations, apply them, create a superuser and start the Django server.

cd demo
python makemigrations
python migrate
python createsuperuser

python runserver

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail-collectionmodeladmin-0.1.4.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page