Skip to main content
https://badge.fury.io/py/django-permanent-helpers.svg https://img.shields.io/pypi/pyversions/django-permanent-helpers.svg https://img.shields.io/pypi/djversions/django-permanent-helpers.svg https://github.com/bashu/django-permanent-helpers/actions/workflows/test.yml/badge.svg https://static.pepy.tech/badge/django-permanent-helpers/month

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

django_permanent_helpers-2.0.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

django_permanent_helpers-2.0.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for django_permanent_helpers-2.0.0.tar.gz
Algorithm Hash digest
SHA256 655ac5c5d3fcd16a1e9d6f740987026999c00a38dd3505fc4c155c3546b086cb
MD5 718645fb78490f50f612889c63d852c9
BLAKE2b-256 8620c4e7f7e6b5249317eb8dc052466e61e6826d1bf53ed71c87e97a7741e1c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_permanent_helpers-2.0.0.tar.gz:

Publisher: release.yml on bashu/django-permanent-helpers

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

File details

Details for the file django_permanent_helpers-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_permanent_helpers-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c1cde79cfc3dc31e8a55cdbc862b3c0a377517b9dc09e36ca017c5e4fa7d854
MD5 be0154e6ff964b0af8e5e865ad112bf0
BLAKE2b-256 8084b66798e600b92402067d3634acfbc42ea47f670c124c1124cbc1302e0a3a

See more details on using hashes here.

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

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

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

1.0.1

2 files

1.0.0

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page