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.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_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 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

wagtail_modeladmin-2.2.0.tar.gz (140.1 kB view details)

Uploaded Source

Built Distribution

wagtail_modeladmin-2.2.0-py3-none-any.whl (265.6 kB view details)

Uploaded Python 3

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

Hashes for wagtail_modeladmin-2.2.0.tar.gz
Algorithm Hash digest
SHA256 41e12f9a79f8c1595fce73bd6b51007422f258089564f9df8e09a82246a8e133
MD5 67cc16d48046d34c2ebf3e05cc225d34
BLAKE2b-256 4472e687aa58e21708655ceaa731586803031385be82eea0876e4268665e8dc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_modeladmin-2.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_modeladmin-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60ea08b128761b5b6a1cbfe3c8ab828fba13e41ff3d7563a0b8c62c8fe36c4ce
MD5 a3e9484ba9b33bf67bada071e219d1ae
BLAKE2b-256 0b290f5f4e7ce521836092ad878d032410dd7563e1ac2b06af0deb9e19032ef0

See more details on using hashes here.

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

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page