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):
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-customize-history1-1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7717ce1d8bb7c22cc3354d0496e502e1d289ba181040fb7eb9f9e8678d22984 |
|
MD5 | ba4a5ebb7b9d9dbcca99f2e3b26bf57e |
|
BLAKE2b-256 | 19d46dcc05f0f542895e612119fc8263b373182f53d42a19c31e51515ec73eee |