Skip to main content

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

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-old-new-history-1.0.3.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

django_old_new_history-1.0.3-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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