Show the old and new value of model's change field in history.
Project description
#django-old-new-history
|PyPI latest| |PyPI Version| |PyPI License|
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
|Screenshot|
.. |PyPI Version| image:: https://img.shields.io/pypi/pyversions/django-old-new-history.svg?maxAge=60 :target: https://pypi.python.org/pypi/django-old-new-history .. |PyPI License| image:: https://img.shields.io/pypi/l/django-old-new-history.svg?maxAge=120 :target: https://github.com/Softices/django-old-new-history/blob/main/LICENSE .. |PyPI latest| image:: https://img.shields.io/pypi/v/django-old-new-history.svg?maxAge=120 :target: https://pypi.python.org/pypi/django-old-new-history .. |Screenshot| image:: https://raw.githubusercontent.com/mayur-softices/djnago-customize-history/main/docs/_static/Change-history-CrudUser-object-5-Django-site-admin.png
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
Hashes for django-old-new-history-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d42bb300a6b28445ed51480b8119fe5fa8be1cffc12748067a739c2e7e7caa1 |
|
MD5 | b66136f0fa716e4af583703da742ac46 |
|
BLAKE2b-256 | cf717b6026c5708000f3b016a464e6951cbbf2825f2318b7d2eb7fce602ddde9 |
Hashes for django_old_new_history-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2c8e0cffe57d11896dbb543b82f110dac204504451b4a1de07cdb56faba0aea |
|
MD5 | a1641ccff81867809b11c4e96fe4d03e |
|
BLAKE2b-256 | 4acbb6abdd6dfe8fc21ca8f29554ee5ba92ca2acaf8faceeb224d95740e0be09 |