Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zerolab/wagtail-periodic-review
A Wagtail package for periodic page content reviews
https://github.com/zerolab/wagtail-periodic-review
content django eeat python wagtail wagtail-apps wagtail-cms wagtail-page wagtail-plugin
Last synced: about 1 month ago
JSON representation
A Wagtail package for periodic page content reviews
- Host: GitHub
- URL: https://github.com/zerolab/wagtail-periodic-review
- Owner: zerolab
- License: bsd-3-clause
- Created: 2021-05-20T09:07:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T09:00:29.000Z (2 months ago)
- Last Synced: 2024-09-22T12:35:32.069Z (about 2 months ago)
- Topics: content, django, eeat, python, wagtail, wagtail-apps, wagtail-cms, wagtail-page, wagtail-plugin
- Language: Python
- Homepage:
- Size: 113 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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/zerolab/wagtail-periodic-review/test.yml?branch=main)](https://github.com/zerolab/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/zerolab/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.pyINSTALLED_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 PeriodicReviewMixinclass 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 [email protected]:zerolab/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-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`.