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

Uploaded Source

Built Distribution

django_extended_history-1.8.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_extended_history-1.8.0.tar.gz
Algorithm Hash digest
SHA256 08a7b3a1f61adfc030b66ce78d7b648dac68515d9f34c0afb6951d37fcbcaa9d
MD5 956d5cd5f3e49244fa448dda4aa90b5e
BLAKE2b-256 242eb4f36058e4723c3015810e33b481a935fe333c1dbe5bfef2f4e8960ebe49

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for django_extended_history-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7451643e04387f41fbfa9700022c7dd121ccfb0ba5d030771bdcaeb3cb137fad
MD5 8abe691f42b98617fc767352eaae346e
BLAKE2b-256 485b22057eeef7c78f1f0d501fe6084688170f40442801a5e41c4dfa4db1fbed

See more details on using hashes here.

Provenance

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

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

Attestations:

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