A Django app allowing the tracking of objects field in the admin site. For Django < 1.8.
Project description
Tracking Fields
A Django app allowing the tracking of objects field in the admin site.
Quick start
Add “tracking_fields” to your INSTALLED_APPS settings.
Add the tracking_fields.decorators.track decorator to your models with the fields you want to track as parameters:
@track('test', 'm2m') class MyModel(models.Model): test = models.BooleanField('Test', default=True) m2m = models.ManyToManyField(SubModelTest, null=True)
Your objects are now tracked. See the admin site for the tracking information.
If you want to track who does the changes, please install the django-cuser app.
You can also track fields of related objects:
class MyModel(models.Model): test = models.BooleanField('Test', default=True) @track('related__test') class MyOtherModel(models.Model): related = models.ForeignKey(MyModel)
You can run the tests by doing make test (make sure to have django-cuser installed).
FAQ
Why does my relationship change create two events ?
Please see https://docs.djangoproject.com/en/1.7/ref/models/relations/#direct-assignment
LICENSE
GPLv3+
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-tracking-fields-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3775c903ae02caaa98fe2261b4d70d772cbf6c961da2d6c1cd64f031c343c28 |
|
MD5 | 636b20916f58309370a7013861677265 |
|
BLAKE2b-256 | ead15bc85fa9e4ccd3708c1a3020223eab96a1d880d786715be0e3acf3d8b3d7 |