Drop-in replacement for default Django history
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_extended_history-1.7.1.tar.gz
.
File metadata
- Download URL: django_extended_history-1.7.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b832f165d0729c504da122f8878c4fc37f1f69d45c10125a90d422ca975a6697 |
|
MD5 | 236a4bf249c95f15d71be2f57805bf0b |
|
BLAKE2b-256 | 79f571fe5cfb7b41b9f1f083f3a524f4b67e0cccecbb8c99e84c475809c84a37 |
File details
Details for the file django_extended_history-1.7.1-py3-none-any.whl
.
File metadata
- Download URL: django_extended_history-1.7.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed01d179e3c9c6e6e7e9b59ef5f10d780c5856ad255d2ff907b2b10d08de51e |
|
MD5 | 1c2496060d0683d33b8ff8220ba78f82 |
|
BLAKE2b-256 | 91ac14a947d1d23a18e06ba85be8df72a5bca8e0e4b57e24a38ddb319e4c9411 |