wagtail-periodic-review


Namewagtail-periodic-review JSON
Version 0.5.0 PyPI version JSON
download
home_pageNone
SummaryA Wagtail package for periodic page content reviews
upload_time2025-09-02 09:38:54
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords wagtail django content review
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Wagtail Periodic Review

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

[![Build status](https://img.shields.io/github/actions/workflow/status/torchbox/wagtail-periodic-review/test.yml?branch=main)](https://github.com/torchbox/wagtail-periodic-review/actions)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)

![A screenshot of the Wagtail administrative dashboard with periodic review panels](https://github.com/torchbox/wagtail-periodic-review/raw/main/.github/wagtail-periodic-review.webp)

## Features

- Dashboard panels
- Filtered report
- Configurable next review frequency


## Installation

Install using pip:

```bash
  pip install wagtail-periodic-review
```


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

```python
# settings.py

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

Run migrations:

```bash
$ ./manage.py migrate
```


## Usage

Add the `PeriodicReviewMixin` to your `Page` models:

```python
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:

```sh
git clone git@github.com:torchbox/wagtail-periodic-review.git
cd wagtail-periodic-review
```

With your preferred virtualenv activated, install testing dependencies:

#### Using pip

```sh
python -m pip install --upgrade "pip>=21.3"
python -m pip install -e '.[testing]' -U
```

#### Using flit

```sh
python -m pip install flit
flit install
```

### pre-commit

Note that this project uses [pre-commit](https://github.com/pre-commit/pre-commit). To set up locally:

```shell
# 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:

```sh
tox
```

or, you can run them for a specific environment `tox -e python3.12-django5.2-wagtail7.1` or specific test
`tox -e python3.12-django5.2-wagtail7.1 -- 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`.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "wagtail-periodic-review",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Dan Braghis <dan.braghis@torchbox.com>",
    "keywords": "Wagtail, Django, content, review",
    "author": null,
    "author_email": "Andy Babic <andy.babic@torchbox.com>",
    "download_url": "https://files.pythonhosted.org/packages/8b/1d/32345be0e33067623d18fe37de6049f691db87aea9f47a3f32a7e3464fec/wagtail_periodic_review-0.5.0.tar.gz",
    "platform": null,
    "description": "# Wagtail Periodic Review\n\nA Wagtail package for periodic page content reviews for quality or audit purposes.\n\n[![Build status](https://img.shields.io/github/actions/workflow/status/torchbox/wagtail-periodic-review/test.yml?branch=main)](https://github.com/torchbox/wagtail-periodic-review/actions)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)\n\n![A screenshot of the Wagtail administrative dashboard with periodic review panels](https://github.com/torchbox/wagtail-periodic-review/raw/main/.github/wagtail-periodic-review.webp)\n\n## Features\n\n- Dashboard panels\n- Filtered report\n- Configurable next review frequency\n\n\n## Installation\n\nInstall using pip:\n\n```bash\n  pip install wagtail-periodic-review\n```\n\n\nAfter installing the module, add `wagtail_periodic_review` and `wagtail.contrib.settings` to installed apps in your settings file:\n\n```python\n# settings.py\n\nINSTALLED_APPS = [\n    # ...\n    \"wagtail.contrib.settings\",\n    \"wagtail_periodic_review\",\n]\n```\n\nRun migrations:\n\n```bash\n$ ./manage.py migrate\n```\n\n\n## Usage\n\nAdd the `PeriodicReviewMixin` to your `Page` models:\n\n```python\nfrom wagtail.models import Page\nfrom wagtail_periodic_review.models import PeriodicReviewMixin\n\n\nclass MyPage(PeriodicReviewMixin, Page):\n    # Add the periodic review panels to the settings panels\n    settings_panels = PeriodicReviewMixin.review_panels + Page.settings_panels\n```\n\n\n## Contributing\n\n### Install\n\nTo make changes to this project, first clone this repository:\n\n```sh\ngit clone git@github.com:torchbox/wagtail-periodic-review.git\ncd wagtail-periodic-review\n```\n\nWith your preferred virtualenv activated, install testing dependencies:\n\n#### Using pip\n\n```sh\npython -m pip install --upgrade \"pip>=21.3\"\npython -m pip install -e '.[testing]' -U\n```\n\n#### Using flit\n\n```sh\npython -m pip install flit\nflit install\n```\n\n### pre-commit\n\nNote that this project uses [pre-commit](https://github.com/pre-commit/pre-commit). To set up locally:\n\n```shell\n# if you don't have it yet, globally\n$ python -m pip install pre-commit\n# go to the project directory\n$ cd wagtail-periodic-review\n# initialize pre-commit\n$ pre-commit install\n\n# Optional, run all checks once for this, then the checks will run only on the changed files\n$ pre-commit run --all-files\n```\n\n### How to run tests\n\nNow you can run tests as shown below:\n\n```sh\ntox\n```\n\nor, you can run them for a specific environment `tox -e python3.12-django5.2-wagtail7.1` or specific test\n`tox -e python3.12-django5.2-wagtail7.1 -- tests.test_file.TestClass.test_method`\n\nTo run the test app interactively, use `tox -e interactive`, visit `http://127.0.0.1:8020/admin/` and log in with `admin`/`changeme`.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Wagtail package for periodic page content reviews",
    "version": "0.5.0",
    "project_urls": {
        "Changelog": "https://github.com/torchbox/wagtail-periodic-review/blob/main/CHANGELOG.md",
        "Source": "https://github.com/torchbox/wagtail-periodic-review/blob/main/CHANGELOG.md"
    },
    "split_keywords": [
        "wagtail",
        " django",
        " content",
        " review"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d1862e9502c532a2da1c87ebf186581a711db1fb2146e09344cc853a7f26f94a",
                "md5": "a1f985c0f098c2b1dfd2a363ba7824af",
                "sha256": "84faad4b643e98e7528654f8135d43a588b9c249d86406568dab7fba1a50389c"
            },
            "downloads": -1,
            "filename": "wagtail_periodic_review-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a1f985c0f098c2b1dfd2a363ba7824af",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 15290,
            "upload_time": "2025-09-02T09:38:52",
            "upload_time_iso_8601": "2025-09-02T09:38:52.947908Z",
            "url": "https://files.pythonhosted.org/packages/d1/86/2e9502c532a2da1c87ebf186581a711db1fb2146e09344cc853a7f26f94a/wagtail_periodic_review-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8b1d32345be0e33067623d18fe37de6049f691db87aea9f47a3f32a7e3464fec",
                "md5": "db5e3477338131719c78d33114ad3ff4",
                "sha256": "c56e89abcb475e30255510e0be30228761e5ea6c3d6cbad3916637ff44607164"
            },
            "downloads": -1,
            "filename": "wagtail_periodic_review-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "db5e3477338131719c78d33114ad3ff4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 12284,
            "upload_time": "2025-09-02T09:38:54",
            "upload_time_iso_8601": "2025-09-02T09:38:54.415750Z",
            "url": "https://files.pythonhosted.org/packages/8b/1d/32345be0e33067623d18fe37de6049f691db87aea9f47a3f32a7e3464fec/wagtail_periodic_review-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-02 09:38:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "torchbox",
    "github_project": "wagtail-periodic-review",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "wagtail-periodic-review"
}
        
Elapsed time: 3.88519s