https://github.com/billschumacher/django-model-auditmatic
A Django app that adds audit capabilities to any model.
https://github.com/billschumacher/django-model-auditmatic
audit-logs audit-trail django django-models postgresql
Last synced: 7 months ago
JSON representation
A Django app that adds audit capabilities to any model.
- Host: GitHub
- URL: https://github.com/billschumacher/django-model-auditmatic
- Owner: BillSchumacher
- License: mit
- Created: 2022-05-14T21:41:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T03:50:12.000Z (over 3 years ago)
- Last Synced: 2025-02-08T04:46:44.148Z (8 months ago)
- Topics: audit-logs, audit-trail, django, django-models, postgresql
- Language: Python
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Work in progress - this probably doesn't work well yet.
===Usage
---
Add django_auditmatic to INSTALLED_APPS.```
INSTALLED_APPS.append("django_auditmatic")
```Configure which models you want to audit in settings.py
```python
AUDITMATIC = {
"apps": {
"auth": {
"User": {"m2m": any},
}
}
}
```For example will only include the User model from the auth app, along with any many-to-many relationships.
Then run:
```shell
python manage.py install_audit
```