Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wagtail-modeladmin

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wagtail-modeladmin

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

  • 2.1.0
  • PyPI
  • Socket score

Maintainers
0

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.

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
  • Wagtail 5.2, 6.1, 6.2, 6.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 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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc