Skip to main content

Provide moderation workflows for content in Django CMS

Project description

Installation

Requirements

django CMS Moderation requires that you have a django CMS 4.0 (or higher) project already running and set up, with djangocms-versioning installed.

To install

Run:

pip install djangocms-moderation

Add the following to your project’s INSTALLED_APPS:

  • 'djangocms_moderation'

  • 'adminsortable2'

Run:

python manage.py migrate djangocms_moderation

to perform the application’s database migrations.

For a guided introduction, see the tutorial in the documentation.

Configuration

The following settings can be added to your project’s settings file to configure django CMS Moderation’s behavior:

Setting

Description

CMS_MODERATION_DEFAULT_COMPLIANCE_NUMBER_BACKEND

Default backend class for generating compliance numbers. Default is djangocms_moderation.backends.uuid4_backend.

CMS_MODERATION_COMPLIANCE_NUMBER_BACKENDS

List of available compliance number backend classes. By default, three backends are configured: uuid4_backend, sequential_number_backend, and sequential_number_with_identifier_prefix_backend.

CMS_MODERATION_ENABLE_WORKFLOW_OVERRIDE

Legacy setting from moderation 1.x; currently has no effect.

CMS_MODERATION_DEFAULT_CONFIRMATION_PAGE_TEMPLATE

Default template for confirmation pages. Defaults to djangocms_moderation/moderation_confirmation.html

CMS_MODERATION_CONFIRMATION_PAGE_TEMPLATES

List of available confirmation page templates. Only includes the default template by default.

CMS_MODERATION_COLLECTION_COMMENTS_ENABLED

Enable/disable comments on collections. Defaults to True.

CMS_MODERATION_REQUEST_COMMENTS_ENABLED

Enable/disable comments on requests. Defaults to True.

CMS_MODERATION_COLLECTION_NAME_LENGTH_LIMIT

Maximum length for collection names. Defaults to 24.

EMAIL_NOTIFICATIONS_FAIL_SILENTLY

Control email notification error handling. Defaults to False.

Example Configuration

Add these settings to your project’s settings file:

# Custom compliance number backend
CMS_MODERATION_DEFAULT_COMPLIANCE_NUMBER_BACKEND = 'myapp.backends.custom_compliance_number_backend'

# Custom confirmation template
CMS_MODERATION_DEFAULT_CONFIRMATION_PAGE_TEMPLATE = 'custom_confirmation.html'

# Enable comments
CMS_MODERATION_COLLECTION_COMMENTS_ENABLED = True
CMS_MODERATION_REQUEST_COMMENTS_ENABLED = True

# Set collection name length limit
CMS_MODERATION_COLLECTION_NAME_LENGTH_LIMIT = 100

# Control email notification errors
EMAIL_NOTIFICATIONS_FAIL_SILENTLY = False

Documentation

We maintain documentation under docs folder using rst format. HTML documentation can be generated using the following commands

Run:

cd docs/
make html

This should generate all html files from rst documents under the docs/_build folder, which can be browsed.

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

djangocms_moderation-2.3.0.tar.gz (535.5 kB view details)

Uploaded Source

Built Distribution

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

djangocms_moderation-2.3.0-py3-none-any.whl (564.8 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_moderation-2.3.0.tar.gz.

File metadata

  • Download URL: djangocms_moderation-2.3.0.tar.gz
  • Upload date:
  • Size: 535.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for djangocms_moderation-2.3.0.tar.gz
Algorithm Hash digest
SHA256 cd026f554b5936aa507236598451d3ea84e23c6f28af04395eb9886860915764
MD5 68aa42197da0f02556f7a07388dad9e2
BLAKE2b-256 362979389efb5edff2e7f0c420596f7db8db6c3e16b8cc355d3033b5a8b6c700

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_moderation-2.3.0.tar.gz:

Publisher: publish-to-live-pypi.yml on django-cms/djangocms-moderation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file djangocms_moderation-2.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_moderation-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 410f16a46dd50666d55496d56a905857b7199f4ef403b393d1e50dd66f8c480c
MD5 e0c6fa6737908819e8ae5d9ea90f58e0
BLAKE2b-256 5830c4b3b40662374c151d5c09f3aa49f379b0889ea1858074ad561b127447c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_moderation-2.3.0-py3-none-any.whl:

Publisher: publish-to-live-pypi.yml on django-cms/djangocms-moderation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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