Simple per-model log models for Django apps.
Compatibility
Django 2.2+, 3.0+
Python 3.6+
Basic Usage
from django.db import models
from analog import define_log_model
class MyModel(models.Model):
value = models.IntegerField(default=0)
MyModelLogEntry = define_log_model(MyModel)
m = MyModel.objects.create(value=42)
m.add_log_entry('Something occurred')
assert m.log_entries.last().message == 'Something occurred'
Development
pip install -e . pip install -r requirements-dev.txt
Tests
py.test
Documentation
sphinx-build -b html docs docs/_build
Release files for django-analog 2.0.0
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-analog-2.0.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_analog-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / django-analog-2.0.0.tar.gz
| Download URL | django-analog-2.0.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
383eaa6e164e2128d12b544f6961648adcf368256ae43efeaf73dfca6b3c1d33
|
|
BLAKE2b-256 checksum How to use checksums |
1c3199c546abb6efbb1e17d3b2ea3a84f43646760fe486a439118318d9af495f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9
|
Release files / django_analog-2.0.0-py3-none-any.whl
| Download URL | django_analog-2.0.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
711a24dd28e5897a0d33d8c79035092116bef05f0e6ec3865c8f51999c774d2e
|
|
BLAKE2b-256 checksum How to use checksums |
cd4a542cea1f37a0a37f1ad7697632b74c0ef55ca209d9996e3a550be9da0913
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9
|