Skip to main content

Store model history and view/revert changes from admin site.

Project description

#django-customise-history

django-customise-history is customise history feature which is used to show the old and new value of model's change field in history action of admin panel.


Installation

Just use:

::

pip install django-customise-history

Setup

Add django_customise_history to INSTALLED_APPS in your settings.py, e.g.:

::

INSTALLED_APPS = [
...
'django_customise_history',
...

Usage

Inherit from DjangoCustomHistory to get the custom history feature.

admin.py e.g.:

::

from django.contrib import admin
from .models import ExampleModel
from django_customize_history.admin import DjangoCustomHistory

@admin.register(ExampleModel)
class ExampleModelAdmin(DjangoCustomHistory, admin.ModelAdmin):
    ...

Screenshot

Here is screenshot of django-customize-history

alt text

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-customize-history1-1.0.8.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file django-customize-history1-1.0.8.tar.gz.

File metadata

  • Download URL: django-customize-history1-1.0.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.10.0 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for django-customize-history1-1.0.8.tar.gz
Algorithm Hash digest
SHA256 fd0965d6014ce314448d40262e045edbf2a576ac6e374d7beb7688818434c6c1
MD5 3a33bfa823b99c3458548a454d408a3d
BLAKE2b-256 2e0983d9f8cb400d4870080335360bd0a86c44a4c7473fbb0b4dab3a6a2d1dd5

See more details on using hashes here.

Provenance

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