Skip to main content

Drop-in replacement for default Django history

Project description

PyPI PyPI download month

django-extended-history

django-extended-history is (IMHO) the simplest way to record all changes made in admin-screens.

Requirements

  • Django >=4.1

Features

  • Drop-in extension for Django history. No changes in any model, hence no migrations.

  • Records all changes in JSON format, extending what Django stores by default.

  • Adds a view ‘Log entries’ under ‘Administration’, showing all content types for which a user has permissions.

  • Safe to remove. Django will ignore all extra recorded information and revert to it’s default history. So give it a spin!


Installation

pip install django-extended-history

Setup

Add django_extended_history to INSTALLED_APPS setting like this:

INSTALLED_APPS = [
...,
'django_extended_history',
]

Done!

Usage

Apply the DjangoExtendedHistory mixin to all applicable admin-views:

from django.contrib import admin
from .models import MyModel
from django_extended_history.admin import DjangoExtendedHistory

@admin.register(MyModel)
class MyModelAdmin(DjangoExtendedHistory, admin.ModelAdmin):
    ...

Misc

Django extended history is released under the BSD-3 license, like Django. If you like it, please consider contributing.

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-extended-history-1.5.0.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

django_extended_history-1.5.0-py3-none-any.whl (7.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