Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 893 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 893 Bytes

Django Finite State Machine Log

Build Status

Automatic logging for the excellent Django FSM package.

Installation

First, install the package with pip. This will automatically install any dependencies you may be missing

pip install git+https://github.com/gizmag/django-fsm-log.git#egg=django-fsm-log

Then migrate the app to create the database table

python manage.py migrate django_fsm_log

Usage

This app will listen for the django_fsm.signals.post_transition to be fired and create a new record for each transition. To query logs simply

from django_fsm_log.models import StateLog
StateLog.objects.all()
# ...all recorded logs...

Running Tests

./runtests.py