Skip to main content

History

History is a Django app to log change model fields

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “django_history” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django_history',
        ...
    ]
  2. Add middleware to your MIDDLEWARE:

    MIDDLEWARE = [
        ...
        'django_history.middleware.ThreadLocals',
    ]
  3. Add models fields to your OBSERVED_FIELDS:

    OBSERVED_FIELDS = {
        'accounts.User':
                (
                      'username', 'first_name', 'middle_name', 'last_name', 'gender', 'phone', 'email',
                      'photo', 'birthday',
                ),
        ...
    }
  4. Use to admin.py:

    from django.contrib import admin
    from django_history.admin import HistoryBlockAdmin
    
    @admin.register(App)
    class AppAdmin(HistoryBlockAdmin, admin.ModelAdmin):
        ...
  5. Run python manage.py migrate to create the history models.

  6. Start the development server and visit http://127.0.0.1:8000/admin/ to create a history (you’ll need the Admin app enabled).

  7. Visit http://127.0.0.1:8000/admin/django_history/action/ to participate in the all history.

Release files for django-admin-history 2.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-admin-history 2.2.3
File Size Uploaded
django-admin-history-2.2.3.tar.gz 24.9 kB Details

Release files / django-admin-history-2.2.3.tar.gz

Download URL django-admin-history-2.2.3.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8069650f318198a47a9c08618f509eae39c72a21ddcc70d461a91d80f3774692
BLAKE2b-256 checksum
How to use checksums
36610e74b1486478cb65f1630635436fbda34aa760284e4b76af88e0893ea644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

2.2.3 This release

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page