Copy the page to the trash before deleting it.
Project description
DjangoCMS Deleted Pages
This module is designed for the Django CMS content management system. Since CMS 4, the content of pages that users publish has been versioned. This makes it possible to revert changes that users have made. Unfortunately, this does not apply to deleted pages. Once a page is deleted, all content, including all its versions, is irretrievably gone. That is why there is this module that creates a copy of the page before deleting it and places it under the Trash page. This way, it is possible to restore a page that was deleted by mistake.
A page representing the trash can for deleted pages is created automatically when a page is deleted.
The trash can page has a special slug, which has the default value deleted-pages. This slug can be redefined in settings in the constant DELETED_PAGES_SLUG.
It is also possible to redefine the slug in Constance, if you have it installed. The name DELETED_PAGES_SLUG is also used there.
By redefining the slug, it is possible to store deleted pages in a different page than the current one.
Install
Install the package from pypi.org.
pip install djangocms-deleted-pages
Add into INSTALLED_APPS in your site settings.py:
INSTALLED_APPS = [
...
"djangocms_deleted_pages",
]
Extra settings
This value can be defined in both settings and Constance. Constance always takes precedence.
DELETED_PAGES_SLUG- Slug for Trash bin page. Default isdeleted-pages.
License
BSD-3-Clause
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_deleted_pages-1.0.0.tar.gz.
File metadata
- Download URL: djangocms_deleted_pages-1.0.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35f77a3d3e3a6a6c6907606e4565c75e1a93924a2f74f8bf1241597dc901eaaa
|
|
| MD5 |
ecc4c7e27e95a705df5ebcfe903bb5f5
|
|
| BLAKE2b-256 |
947ad40bbf15f115576ee23a472874094527ab9deb83c6bb4ea466855782ecf9
|
File details
Details for the file djangocms_deleted_pages-1.0.0-py3-none-any.whl.
File metadata
- Download URL: djangocms_deleted_pages-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3d8d826683e9be14c47db18bec14972f180ea19ba304cda7636ceb4fc969c4c
|
|
| MD5 |
c66706c9d238cc4e6783e52d2f716226
|
|
| BLAKE2b-256 |
d1439ce5efdd19648ae2e7d8f9e23acd54fe093bce72ca597f65feef8d05ac9e
|