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 Snippets and opening new feature requests in the Wagtail issue tracker.

Links

Supported versions

  • Python 3.8, 3.9, 3.10, 3.11, 3.12
  • Django 4.2, 5.0
  • Wagtail 5.2, 6.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.0.0.tar.gz (134.9 kB view details)

Uploaded Source

Built Distribution

wagtail_modeladmin-2.0.0-py3-none-any.whl (263.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail_modeladmin-2.0.0.tar.gz
  • Upload date:
  • Size: 134.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for wagtail_modeladmin-2.0.0.tar.gz
Algorithm Hash digest
SHA256 3794c854b86d69ad1b2ec4f3ee5e6852ff8cb0505bd9151186ef26e0a88d84bc
MD5 1a7fc4ed6078570b26b2a71052800592
BLAKE2b-256 9dcf237bea2abaf8a71b93ea152bb39e62a939453753c3794aaca32b9aac12e6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for wagtail_modeladmin-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36931ce4b2c2bb56d0367317b29786eb001344b7c9a1cd4f719d7f11efeae71b
MD5 ddc621e7bbb414da2c1e6f5277954d04
BLAKE2b-256 2723ab5bbdc07732d90410f16f0d20eacba9772467458784a7dfaa7fe1e34c0d

See more details on using hashes here.

Provenance

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