Simple per-model log models for Django apps
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-analog-2.0.0.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file django-analog-2.0.0.tar.gz
.
File metadata
- Download URL: django-analog-2.0.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 383eaa6e164e2128d12b544f6961648adcf368256ae43efeaf73dfca6b3c1d33 |
|
MD5 | f332d6f7c7a2a645bd455ec989eacde3 |
|
BLAKE2b-256 | 1c3199c546abb6efbb1e17d3b2ea3a84f43646760fe486a439118318d9af495f |
File details
Details for the file django_analog-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_analog-2.0.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 711a24dd28e5897a0d33d8c79035092116bef05f0e6ec3865c8f51999c774d2e |
|
MD5 | 87a6fd44c16052be155b323f3d13cfaf |
|
BLAKE2b-256 | cd4a542cea1f37a0a37f1ad7697632b74c0ef55ca209d9996e3a550be9da0913 |