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.2

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.7.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

django_extended_history-1.7.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file django_extended_history-1.7.1.tar.gz.

File metadata

File hashes

Hashes for django_extended_history-1.7.1.tar.gz
Algorithm Hash digest
SHA256 b832f165d0729c504da122f8878c4fc37f1f69d45c10125a90d422ca975a6697
MD5 236a4bf249c95f15d71be2f57805bf0b
BLAKE2b-256 79f571fe5cfb7b41b9f1f083f3a524f4b67e0cccecbb8c99e84c475809c84a37

See more details on using hashes here.

File details

Details for the file django_extended_history-1.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_extended_history-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ed01d179e3c9c6e6e7e9b59ef5f10d780c5856ad255d2ff907b2b10d08de51e
MD5 1c2496060d0683d33b8ff8220ba78f82
BLAKE2b-256 91ac14a947d1d23a18e06ba85be8df72a5bca8e0e4b57e24a38ddb319e4c9411

See more details on using hashes here.

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