Model logs is a Django app for storing changes of yours objects
Quick start
Add “model_log” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'model_log', ]Run python manage.py migrate to create the “model_logs” models.
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 )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)
| 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
|