Simple per-model log models for Django apps
Project description
Simple per-model log models for Django apps.
Compatibility
Django 1.8+
Python 2.7 or Python 3.4+
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-1.0.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for django_analog-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683e3b53485838a49e7b7574f9ee8cebd2b61eb397c85ad06785754819ab974f |
|
MD5 | 75f5bba33250d490650cc2e5679fb33d |
|
BLAKE2b-256 | 19db09d4560ca14f19d272ad45cffef5b7462e58ed7e290b8aa9b025c1f9453c |