Show the old and new value of model's change field in history.
Project description
#django-old-new-history
django-old-new-history is customize history feature which is used to show the old and new value of model's change field in history action of admin panel.
Requirements
- Python 3.7 or later
- Django 2.0 or later
Features
- Customize history.
- Display old and new value of model's change field.
- Simple admin integration.
Installation
Just use:
::
pip install django-old-new-history
Setup
Add django_old_new_history to INSTALLED_APPS in your settings.py, e.g.:
::
INSTALLED_APPS = [
...
'django_old_new_history',
...
Usage
Inherit from DjangoOldNewHistory to get the custom history feature.
admin.py e.g.:
::
from django.contrib import admin
from .models import ExampleModel
from django_old_new_history.admin import DjangoOldNewHistory
@admin.register(ExampleModel)
class ExampleModelAdmin(DjangoOldNewHistory, admin.ModelAdmin):
...
Screenshot
Here is screenshot of django-old-new-history
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
Built Distribution
File details
Details for the file django-old-new-history-1.0.3.tar.gz
.
File metadata
- Download URL: django-old-new-history-1.0.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4407a7f8207dfc8c5799c5223db3b12379b2ccc0366f7b546787f86dd9c179d1 |
|
MD5 | e0236feb49a8eae477c7178578526806 |
|
BLAKE2b-256 | e1d945541c9f4cf78352298ab995599163860d2633feeb906217e8b3d0d070d0 |
File details
Details for the file django_old_new_history-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: django_old_new_history-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d35edad20858c636889c36d7353866c9c3689a4ac23e0d0a6dabd339087a09 |
|
MD5 | 98b69455a352e26b2b595e31b1aee8dc |
|
BLAKE2b-256 | 2215641726a7477ed532975be1bbbe2a8490c1862b1141f9e4b91e390d0cc7c6 |