Skip to main content

Add any model in your project to the Wagtail admin. Formerly wagtail.contrib.modeladmin.

Project description

Wagtail ModelAdmin

License PyPI version ModelAdmin CI

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.10, 3.11, 3.12, 3.13, 3.14
  • Django 5.2, 6.0
  • Wagtail 7.0 and 7.3

Installation

  • python -m pip install wagtail-modeladmin
  • Add wagtail_modeladmin to your INSTALLED_APPS setting.
    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 py314-django60-wagtail73 or specific test tox -e py314-django60-wagtail73-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

wagtail_modeladmin-2.4.0.tar.gz (141.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_modeladmin-2.4.0-py3-none-any.whl (265.8 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_modeladmin-2.4.0.tar.gz.

File metadata

  • Download URL: wagtail_modeladmin-2.4.0.tar.gz
  • Upload date:
  • Size: 141.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wagtail_modeladmin-2.4.0.tar.gz
Algorithm Hash digest
SHA256 11b051e4595242cec5f71b9e30acf1ca6b08809d27e3fa148d7f8e77cf60d9fe
MD5 9ba5180759634197e40a1afe40b0411b
BLAKE2b-256 4dfc572d102ffddbb1cdc8ee57f89e110999979dcfb19346dea4270591f87a59

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_modeladmin-2.4.0.tar.gz:

Publisher: publish.yml on wagtail-nest/wagtail-modeladmin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wagtail_modeladmin-2.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_modeladmin-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ddf8d099c402610ac9a5d668c72a0743463395316b23abcb4f9fbf2ddd2984f
MD5 547c8d00b4282a0f8d55db0d34213938
BLAKE2b-256 b1bc564c02172c3ee1717ebb69b8565f1cacadd59914a5c4b330741a9a9b9705

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_modeladmin-2.4.0-py3-none-any.whl:

Publisher: publish.yml on wagtail-nest/wagtail-modeladmin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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