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
2.0.0 (2026-08-14)
Fixed a ValueError in PermanentModelListFilter.queryset() on Django 5+ (__isnull requires a strict bool).
Fixed log_restore() to use LogEntry.objects.log_actions() (log_action() is removed in Django 6.0).
Dropped Python 2.7/3.6–3.9 support; now requires Python 3.10–3.14.
Dropped Django <5.2 support; now requires Django 5.2–6.1.
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.
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 django_permanent_helpers-2.0.0.tar.gz.
File metadata
- Download URL: django_permanent_helpers-2.0.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
655ac5c5d3fcd16a1e9d6f740987026999c00a38dd3505fc4c155c3546b086cb
|
|
| MD5 |
718645fb78490f50f612889c63d852c9
|
|
| BLAKE2b-256 |
8620c4e7f7e6b5249317eb8dc052466e61e6826d1bf53ed71c87e97a7741e1c8
|
Provenance
The following attestation bundles were made for django_permanent_helpers-2.0.0.tar.gz:
Publisher:
release.yml on bashu/django-permanent-helpers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_permanent_helpers-2.0.0.tar.gz -
Subject digest:
655ac5c5d3fcd16a1e9d6f740987026999c00a38dd3505fc4c155c3546b086cb - Sigstore transparency entry: 2461455216
- Sigstore integration time:
-
Permalink:
bashu/django-permanent-helpers@0264de695c16b3f22b6c3245c1ecb0c5adb3d81d -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/bashu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0264de695c16b3f22b6c3245c1ecb0c5adb3d81d -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_permanent_helpers-2.0.0-py3-none-any.whl.
File metadata
- Download URL: django_permanent_helpers-2.0.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c1cde79cfc3dc31e8a55cdbc862b3c0a377517b9dc09e36ca017c5e4fa7d854
|
|
| MD5 |
be0154e6ff964b0af8e5e865ad112bf0
|
|
| BLAKE2b-256 |
8084b66798e600b92402067d3634acfbc42ea47f670c124c1124cbc1302e0a3a
|
Provenance
The following attestation bundles were made for django_permanent_helpers-2.0.0-py3-none-any.whl:
Publisher:
release.yml on bashu/django-permanent-helpers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_permanent_helpers-2.0.0-py3-none-any.whl -
Subject digest:
3c1cde79cfc3dc31e8a55cdbc862b3c0a377517b9dc09e36ca017c5e4fa7d854 - Sigstore transparency entry: 2461455362
- Sigstore integration time:
-
Permalink:
bashu/django-permanent-helpers@0264de695c16b3f22b6c3245c1ecb0c5adb3d81d -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/bashu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0264de695c16b3f22b6c3245c1ecb0c5adb3d81d -
Trigger Event:
push
-
Statement type: