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 hashes)

Uploaded Source

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