Skip to main content

Model logs is a Django app for storing changes of yours objects

Quick start

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

    INSTALLED_APPS = [
        ...
        'model_log',
    ]
  2. Run python manage.py migrate to create the “model_logs” models.

  3. For adding or excluding the models you want to log, in the settings.py:

    MODELS_FOR_LOGGING = (
        'app.ClassName',    # logging only for this model
        'another_app'     # logging of all models in this app
    )
    
    MODELS_FOR_EXCLUDE = (
        'app.ClassName',    # excluding from logging only for this model
    )
  4. To override Django’s default view to show the history of a log, use LogModelAdmin instead of ModelAdmin:

    class ExampleAdmin(LogModelAdmin):
        pass

Release files for django-model-logs 0.1.15

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-model-logs 0.1.15
File Size Uploaded
django-model-logs-0.1.15.tar.gz 8.3 kB Details

Release files / django-model-logs-0.1.15.tar.gz

Download URL django-model-logs-0.1.15.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
36e5f448a8c0a12059c52c87aedb3b7cfd853e01d435d439f5c70d9ee129bc68
BLAKE2b-256 checksum
How to use checksums
0033b90248e946e4715143623a10961d7fe39cfcadb6e2ba42d0b54ec047e3d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1.15 This release

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.0

2 release files

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