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.3.0.tar.gz (141.1 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.3.0-py3-none-any.whl (265.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail_modeladmin-2.3.0.tar.gz
  • Upload date:
  • Size: 141.1 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.3.0.tar.gz
Algorithm Hash digest
SHA256 65336077a9bf1b01d6a4af621f9542beb1fda696d2ec6f8d5d807ed49a84c31b
MD5 9cc8843cabda1888ce44d1e0dee763a9
BLAKE2b-256 11c35d31ddc6e15d4254670cdccbdffa808784c81266c040d604bd1a86563884

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for wagtail_modeladmin-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6633ba102a94fd7ace9a0501d7ca290b815fb0485d132d112b5e0289de41ff
MD5 09a9cebe043a0787e1010ccd79b879e0
BLAKE2b-256 a976ca040a98906e8ba95bc8cb2a6935bb13f4b383ec67d3d55d941885927566

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_modeladmin-2.3.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