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
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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd0965d6014ce314448d40262e045edbf2a576ac6e374d7beb7688818434c6c1 |
|
MD5 | 3a33bfa823b99c3458548a454d408a3d |
|
BLAKE2b-256 | 2e0983d9f8cb400d4870080335360bd0a86c44a4c7473fbb0b4dab3a6a2d1dd5 |