Django Audit Trail library
Python HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
audit_trail
test_project
.gitignore
.landscape.yaml
.travis.yml
CHANGES.txt
LICENSE.md
MANIFEST.in
README.md
bump_version.py
pylintrc
runtests.py
setup.py
tox.ini

README.md

Audit Trail library

Syabro: Unfinished. Fix after implementing in the main project

Model history tracking

Usage

    class MyModel(models.Model):
        field1, field2, field3 = models.IntegerField(), models.IntegerField(), models.IntegerField()
        field4, field5         = models.TextField(), models.TextField()

        audit = AuditTrailWatcher(
            fields=['field1', 'field2'],
            track_creation=True,
            track_update=True,
            track_deletion=True,
            track_related=['somemodel_set', 'somefk']
        )

Options

fields — list of fields to track. If is not provided — track all fields.
track_creation — track model creation, default True
track_update — track model update, default True
track_deletion — track model deletion, default True
track_related - track related objects changes

Code Health Travis CI