Add any model in your project to the Wagtail admin. Formerly wagtail.contrib.modeladmin.
Project description
Wagtail ModelAdmin
Add any model in your project to the Wagtail admin. Formerly wagtail.contrib.modeladmin.
This package is in maintenance mode and will not receive new features. Consider migrating to Wagtail's built-in features and opening new feature requests in the Wagtail issue tracker.
Links
Supported versions
- Python 3.8 (Wagtail 5.2 only), 3.9, 3.10, 3.11, 3.12, 3.13
- Django 4.2, 5.0, 5.1, 5.2
- Wagtail 5.2, 6.1, 6.2, 6.3, 6.4 and 7.0
Installation
python -m pip install wagtail-modeladmin- Add
wagtail_modeladminto yourINSTALLED_APPSsetting.INSTALLED_APPS = [ # ... "wagtail_modeladmin", # ... ]
Contributing
Install
To make changes to this project, first clone this repository:
git clone https://github.com/wagtail-nest/wagtail-modeladmin.git
cd wagtail-modeladmin
With your preferred virtualenv activated, install testing dependencies:
Using pip
python -m pip install --upgrade pip>=21.3
python -m pip install -e .[testing] -U
Using flit
python -m pip install flit
flit install
pre-commit
Note that this project uses pre-commit. It is included in the project testing requirements. To set up locally:
# go to the project directory
$ cd wagtail-modeladmin
# initialize pre-commit
$ pre-commit install
# Optional, run all checks once for this, then the checks will run only on the changed files
$ git ls-files --others --cached --exclude-standard | xargs pre-commit run --files
How to run tests
Now you can run tests as shown below:
tox
or, you can run them for a specific environment tox -e python3.10-django4.2-wagtail4.1 or specific test
tox -e python3.10-django4.2-wagtail4.1-sqlite wagtail-modeladmin.tests.test_file.TestClass.test_method
To run the test app interactively, use tox -e interactive, visit http://127.0.0.1:8020/admin/ and log in with admin/changeme.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtail_modeladmin-2.2.0.tar.gz.
File metadata
- Download URL: wagtail_modeladmin-2.2.0.tar.gz
- Upload date:
- Size: 140.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e12f9a79f8c1595fce73bd6b51007422f258089564f9df8e09a82246a8e133
|
|
| MD5 |
67cc16d48046d34c2ebf3e05cc225d34
|
|
| BLAKE2b-256 |
4472e687aa58e21708655ceaa731586803031385be82eea0876e4268665e8dc4
|
Provenance
The following attestation bundles were made for wagtail_modeladmin-2.2.0.tar.gz:
Publisher:
publish.yml on wagtail-nest/wagtail-modeladmin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wagtail_modeladmin-2.2.0.tar.gz -
Subject digest:
41e12f9a79f8c1595fce73bd6b51007422f258089564f9df8e09a82246a8e133 - Sigstore transparency entry: 202746518
- Sigstore integration time:
-
Permalink:
wagtail-nest/wagtail-modeladmin@a4f216564b2434e204af2cfedb6fee31986b7716 -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/wagtail-nest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a4f216564b2434e204af2cfedb6fee31986b7716 -
Trigger Event:
release
-
Statement type:
File details
Details for the file wagtail_modeladmin-2.2.0-py3-none-any.whl.
File metadata
- Download URL: wagtail_modeladmin-2.2.0-py3-none-any.whl
- Upload date:
- Size: 265.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ea08b128761b5b6a1cbfe3c8ab828fba13e41ff3d7563a0b8c62c8fe36c4ce
|
|
| MD5 |
a3e9484ba9b33bf67bada071e219d1ae
|
|
| BLAKE2b-256 |
0b290f5f4e7ce521836092ad878d032410dd7563e1ac2b06af0deb9e19032ef0
|
Provenance
The following attestation bundles were made for wagtail_modeladmin-2.2.0-py3-none-any.whl:
Publisher:
publish.yml on wagtail-nest/wagtail-modeladmin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wagtail_modeladmin-2.2.0-py3-none-any.whl -
Subject digest:
60ea08b128761b5b6a1cbfe3c8ab828fba13e41ff3d7563a0b8c62c8fe36c4ce - Sigstore transparency entry: 202746523
- Sigstore integration time:
-
Permalink:
wagtail-nest/wagtail-modeladmin@a4f216564b2434e204af2cfedb6fee31986b7716 -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/wagtail-nest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a4f216564b2434e204af2cfedb6fee31986b7716 -
Trigger Event:
release
-
Statement type: