Skip to main content

Wagtail Periodic Review

A Wagtail package for periodic page content reviews for quality or audit purposes.

Build status black Ruff pre-commit

A screenshot of the Wagtail administrative dashboard with periodic review panels

Features

  • Dashboard panels
  • Filtered report
  • Configurable next review frequency

Installation

Install using pip:

  pip install wagtail-periodic-review

After installing the module, add wagtail_periodic_review and wagtail.contrib.settings to installed apps in your settings file:

# settings.py

INSTALLED_APPS = [
    # ...
    "wagtail.contrib.settings",
    "wagtail_periodic_review",
]

Run migrations:

$ ./manage.py migrate

Usage

Add the PeriodicReviewMixin to your Page models:

from wagtail.models import Page
from wagtail_periodic_review.models import PeriodicReviewMixin


class MyPage(PeriodicReviewMixin, Page):
    # Add the periodic review panels to the settings panels
    settings_panels = PeriodicReviewMixin.review_panels + Page.settings_panels

Contributing

Install

To make changes to this project, first clone this repository:

git clone git@github.com:zerolab/wagtail-periodic-review.git
cd wagtail-periodic-review

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. To set up locally:

# if you don't have it yet, globally
$ python -m pip install pre-commit
# go to the project directory
$ cd wagtail-periodic-review
# initialize pre-commit
$ pre-commit install

# Optional, run all checks once for this, then the checks will run only on the changed files
$ pre-commit run --all-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-django3.2-wagtail4.1 or specific test tox -e python3.10-django3.2-wagtail4.1-sqlite 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail_periodic_review-0.2.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

wagtail_periodic_review-0.2.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_periodic_review-0.2.0.tar.gz.

File metadata

  • Download URL: wagtail_periodic_review-0.2.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for wagtail_periodic_review-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b4a30ea889cf50a677252d35f82eb033fa149568161c640dc70bc51491df635b
MD5 00fed45f7d7208c2ebb6fe35f73827d3
BLAKE2b-256 d3460b9879ab086c641b416cf31e684d151c835fe1a752a1980f66bd75163870

See more details on using hashes here.

File details

Details for the file wagtail_periodic_review-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_periodic_review-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3eba6a1db2f60701b5d6365667d906c43ba2da801ab23575088155ffbba0f7b1
MD5 28a57f6dfad0ec67c82062220c585fe0
BLAKE2b-256 36ee5fe7fc967dffc19269a3b7f1ec535349c64b8eb36815b4867f4b9d2755f7

See more details on using hashes here.

Supported by

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