Collection Model Admin
Installation
pip install wagtail-collectionmodeladmin
Development
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/models.py:
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/base.py:
INSTALLED_APPS = [
...
'wagtail.contrib.modeladmin',
]
Create the wagtail hooks that will inject the model admin in demo/home/wagtail_hooks.py:
from wagtail.contrib.modeladmin.options import modeladmin_register
from collectionmodeladmin.base import CollectionModelAdmin
from home.models import Demo
class DemoModelAdmin(CollectionModelAdmin):
model = Demo
modeladmin_register(DemoModelAdmin)
Then as usual make migrations, apply them, create a superuser and start the Django server.
cd demo
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Metadata
Release files for wagtail-collectionmodeladmin 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail-collectionmodeladmin-0.1.4.tar.gz | 4.4 kB | Without provenance | Details for wagtail-collectionmodeladmin-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtail_collectionmodeladmin-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for wagtail_collectionmodeladmin-0.1.4-py3-none-any.whl |
Total release size: 14.6 kB
Release files / wagtail-collectionmodeladmin-0.1.4.tar.gz
| Download URL | wagtail-collectionmodeladmin-0.1.4.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03ecb40212f2663c4b0e2a1a2dcaaec71f23d1ca7a591ee2e847de5b43fd35c4
|
|
BLAKE2b-256 checksum How to use checksums |
1cae775fa0fba1887bee8b605f7761dba2b0336d93e9164483ea975e5acffa05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
|
Release files / wagtail_collectionmodeladmin-0.1.4-py3-none-any.whl
| Download URL | wagtail_collectionmodeladmin-0.1.4-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28b9c6e2e985a4cfb0b14d248bf438ebb53e11be4fb7cd350fb0d1928005f3eb
|
|
BLAKE2b-256 checksum How to use checksums |
bac43b36ef4b4ceb38eded8f667a7bcd9e7fbdb5c95014c735cda42775094977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
|
Security for wagtail-collectionmodeladmin 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.