Skip to main content

django admin helper classes for django-permanent models

Project description

https://img.shields.io/pypi/v/django-permanent-helpers.svg https://img.shields.io/pypi/dm/django-permanent-helpers.svg https://img.shields.io/github/license/bashu/django-permanent-helpers.svg

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.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

django-permanent-helpers-1.0.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

django_permanent_helpers-1.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file django-permanent-helpers-1.0.0.tar.gz.

File metadata

  • Download URL: django-permanent-helpers-1.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for django-permanent-helpers-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f6ed53a0962913181309851eb6f2c716b07ff51bd438afcb8a877bc487c116a8
MD5 925a68d62af1348a4cbb43c9d118e24f
BLAKE2b-256 984202f5e5df525bf73c43dd1b1fe6c0e92ba98f4a9879157834988c65103be0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_permanent_helpers-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for django_permanent_helpers-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1949e74393c79443bdc0684c97a6dd495028bcc0a00bc3149e09c73ad41b5861
MD5 b827c4a080f58608b2ea51ad48ad1376
BLAKE2b-256 cf5e7a449642565159aaa9bbffc09836eb74b3b7ebda5825dd40087f7776b7a0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page