Skip to main content

Drop-in replacement for default Django history

Reason this release was yanked:

Exception on RelatedFieldWidgetWrapper

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 (Log entries). 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):
    ...

Example Log Entry

Below an example Log Entry where the first name of a user was changed from ‘John’ to ‘Jane’, the email address was changed accordingly and the user was added to a group ‘Expert’ at the same time.

https://github.com/HealthyFridge/django-extended-history/blob/main/Screenshot%20change%20message.png?raw=true

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_extended_history-1.9.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_extended_history-1.9.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for django_extended_history-1.9.2.tar.gz
Algorithm Hash digest
SHA256 e27373e88e68e24f79efa3e5d98ed546aec9b0a95867962cb017d5e0669589b7
MD5 48ebd676a49d89aea295798100f017de
BLAKE2b-256 3a23b629f71e72687e14aa6504d4d58a7800fcbbcad42cca2f77ed821df8606d

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_extended_history-1.9.2.tar.gz:

Publisher: publish-pypi.yml on HealthyFridge/django-extended-history

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for django_extended_history-1.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 622db8f451b1f1bd166331ded5c87dd865e08e2e0f45e54d7bcfc1068c530ca1
MD5 d3d58161e078b8cc405c2660215b6e62
BLAKE2b-256 25b43e6ae6e4f705df1efc13ea6f6ee61109c5f990e4e46d9710106c0ee69d3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_extended_history-1.9.2-py3-none-any.whl:

Publisher: publish-pypi.yml on HealthyFridge/django-extended-history

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page