django admin helper classes for django-permanent models
Project description
Django admin helper classes for django-permanent models.
Authored by Basil Shubin, inspired by django-taggit-helpers
Installation
First install the module, preferably in a virtual environment. It can be installed from PyPI:
pip install django-permanent-helpers
Setup
First make sure the project is configured for django-permanent.
Then add the following settings:
INSTALLED_APPS += (
'django_permanent_helpers',
)
Usage
PermanentModelAdmin
An abstract ModelAdmin which will include deleted objects in its listing and enable un-deleting feature.
from django_permanent_helpers.admin import PermanentModelAdmin
class MyModelAdmin(PermanentModelAdmin):
pass
PermanentModelListFilter
Filter records by their PERMANENT_FIELD value, use together with PermanentModelAdmin class.
from django_permanent_helpers.admin import PermanentModelAdmin, PermanentModelListFilter
class MyModelAdmin(PermanentModelAdmin):
list_filter = [PermanentModelListFilter]
Contributing
If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)
License
django-permanent-helpers is released under the MIT license.
Changes
1.0.1 (2021-11-29)
Updated ru translation.
1.0.0 (2021-11-29)
Added Django 3+ support.
Dropped Python 2.7 support.
Dropped Django 1.10 / 1.11 support.
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
Built Distribution
Hashes for django-permanent-helpers-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9c541f9406de283b23cb5ce59e43a72d92f812ac5cfb0147993c72a90b5325e |
|
MD5 | 3d16914283d26bb5517d34a5d22463d2 |
|
BLAKE2b-256 | 4e48ab0062c5c837328d91cc84f7ad87a2f1321af2feee9629210908f5cdab96 |
Hashes for django_permanent_helpers-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 772fc1a529380d3dcd9a2ab45d7233c5775890625b7286bd553a4a71abd08225 |
|
MD5 | 6234c8e3aac8b68cfa8d637d04a1228d |
|
BLAKE2b-256 | 7af1bf516b482ab59da5c0afd73840635209187de5a17322b14fe789c93c43bb |