Skip to main content

Model Logs

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

Metadata

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 Provenance Actions
django-model-logs-0.1.15.tar.gz 8.3 kB Without provenance Details for django-model-logs-0.1.15.tar.gz

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

Security for django-model-logs 0.1.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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