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.
djangocms-versioning is also required along with django-fsm which should be installed with versioning.
To install
Run:
pip install git+git://github.com/django-cms/djangocms-moderation@master#egg=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.
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 |
Enable/disable workflow override functionality. Defaults to False. |
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.CustomComplianceNumberBackend'
# Enable workflow override
CMS_MODERATION_ENABLE_WORKFLOW_OVERRIDE = True
# 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangocms_moderation-2.2.3.tar.gz.
File metadata
- Download URL: djangocms_moderation-2.2.3.tar.gz
- Upload date:
- Size: 509.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
685ece4661f83ea2d52dc65d1467f039a3bc8643d3050177b2d6cfdc49c82732
|
|
| MD5 |
9f2861c3a6b0bffa31d064dadace943a
|
|
| BLAKE2b-256 |
b6df58cf95d15dd8ec2188187e255091b6f6b302da65e572de322ab8754f06fd
|
Provenance
The following attestation bundles were made for djangocms_moderation-2.2.3.tar.gz:
Publisher:
publish-to-live-pypi.yml on django-cms/djangocms-moderation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
djangocms_moderation-2.2.3.tar.gz -
Subject digest:
685ece4661f83ea2d52dc65d1467f039a3bc8643d3050177b2d6cfdc49c82732 - Sigstore transparency entry: 626653002
- Sigstore integration time:
-
Permalink:
django-cms/djangocms-moderation@6d1b3906082ea73f63d0034e91f40ed6822f3e21 -
Branch / Tag:
refs/tags/2.2.3 - Owner: https://github.com/django-cms
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-live-pypi.yml@6d1b3906082ea73f63d0034e91f40ed6822f3e21 -
Trigger Event:
release
-
Statement type:
File details
Details for the file djangocms_moderation-2.2.3-py3-none-any.whl.
File metadata
- Download URL: djangocms_moderation-2.2.3-py3-none-any.whl
- Upload date:
- Size: 527.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59716a99206588a4dbed7167fe7616550cacb9da47c4ef91017c2ebde075f7cb
|
|
| MD5 |
cabea58e05063d1bf7d6364852235e7a
|
|
| BLAKE2b-256 |
28cce8965817f9c2c4b4074e9404cbd1bc7f5c15afd69229692425ff9931519f
|
Provenance
The following attestation bundles were made for djangocms_moderation-2.2.3-py3-none-any.whl:
Publisher:
publish-to-live-pypi.yml on django-cms/djangocms-moderation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
djangocms_moderation-2.2.3-py3-none-any.whl -
Subject digest:
59716a99206588a4dbed7167fe7616550cacb9da47c4ef91017c2ebde075f7cb - Sigstore transparency entry: 626653005
- Sigstore integration time:
-
Permalink:
django-cms/djangocms-moderation@6d1b3906082ea73f63d0034e91f40ed6822f3e21 -
Branch / Tag:
refs/tags/2.2.3 - Owner: https://github.com/django-cms
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-live-pypi.yml@6d1b3906082ea73f63d0034e91f40ed6822f3e21 -
Trigger Event:
release
-
Statement type: