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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_extended_history-1.7.2.tar.gz
Algorithm Hash digest
SHA256 68fd961e7d3a549cb0990dc512ac4c71991b002cba1240daeaede013ad7f8ebf
MD5 759fd66a7c38cfae10b467c6c0c16b5c
BLAKE2b-256 37b7e128f8f576151338720d08f70307fdf1acce0669e6fd507522d5f1dedb1c

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for django_extended_history-1.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98cb976268e1322d229ea3acd0ead9e52bb9fa5895deb954d4fd4a7a386720d2
MD5 e0094b2e394592aa9c2abbbec5d5dc30
BLAKE2b-256 9da17bf387fbeb4ea805a9081727d983e6da5abddb75c132f65f84c0dc0adeef

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_extended_history-1.7.2-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