Skip to main content

A Wagtail package for periodic page content reviews

Project description

Wagtail Periodic Review

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

Build status 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.12-django4.2-wagtail5.2 or specific test tox -e python3.12-django4.2-wagtail5.2 -- 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_periodic_review-0.4.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

wagtail_periodic_review-0.4.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wagtail_periodic_review-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5df67b512580f128838d5c782c74ed922234daafa478ed19ea133cdc511fc34a
MD5 a5c9f5653d0d96fe346f2f55699274c8
BLAKE2b-256 06ce06653bc829e40a7b568a89bac36d52b81fa4dcde70c3b45aaedb874b4735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wagtail_periodic_review-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86df0c893ea95925483da5cc4622fcc3d68c644ab9c6a98c87d89f1e80aa2db8
MD5 66667e6540b3602a574989d0d19180e9
BLAKE2b-256 9716e190562b9fc6013ea560c7da2e40e401beea86b97dcd1dc8ea082523bbaa

See more details on using hashes here.

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