Snapshot is a library that provides snapshot of data changes on django model.
pip install unicef-snapshot
Add unicef_snapshot
to INSTALLED_APPS
in settings.py
- INSTALLED_APPS = [
- ... 'unicef_snapshot',
]
Use unicef-snapshot
in serializers
from unicef_snapshot.serializers import SnapshotModelSerializer
- class ExampleSerializer(SnapshotModelSerializer):
- ...
To install the necessary libraries
$ make install
See PEP 8 Style Guide for Python Code for complete details on the coding standards.
To run checks on the code to ensure code is in compliance
$ make lint
Testing is important and tests are located in tests/ directory and can be run with;
$ make test
Coverage report is viewable in build/coverage directory, and can be generated with;
- Continuos Integration - https://circleci.com/gh/unicef/unicef-snapshot/tree/develop
- Source Code - https://github.com/unicef/unicef-snapshot