{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"}],"enrichment":{"capability":"Automatically logs state transitions for Django FSM models to the database, capturing the source state, target state, timestamp, and optional metadata like the user who triggered the transition.","skillfed_tags":["django-orm","audit-trail","state-machine"],"use_cases":["Track approval workflows in document management systems, logging who approved/rejected and when.","Audit state changes in order processing pipelines for compliance and debugging.","Display transition history in Django admin to show users how a model's state evolved.","Implement rollback or undo features by querying the StateLog to find previous states.","Generate reports on transition timing and frequency to identify bottlenecks in workflows."],"what_it_does":"django-fsm-log is a Django app that automatically captures and persists state machine transitions for models using django-fsm-2. It listens for FSM transition signals and creates database records for each state change, including source state, target state, timestamp, and optional metadata like the user who triggered the transition.\n\nThe package provides query helpers (StateLog.objects.for_() to filter by model instance), decorators to attach user information or custom descriptions to transitions, and admin integration to visualize transition history. It can optionally cache pending transitions before they're persisted, allowing access to log details immediately after a transition begins rather than waiting for database commit.","worth_installing":"Yes. The package is actively maintained, supports current Django and Python versions, has no known vulnerabilities, and solves a common need for FSM-based Django applications. Install it if you're using django-fsm-2 and need to audit or display state transition history; the low install friction and permissive license make it a straightforward addition."},"id":"django-fsm-log","links":{"html":"https://skillfed.io/packages/django-fsm-log","md":"https://skillfed.io/packages/django-fsm-log.md","pypi":"https://pypi.org/project/django-fsm-log/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-27","license_spdx":"MIT","license_treatment":"permissive","name":"django-fsm-log","python_support":"supports_current","summary":"Transition's persistence for django-fsm"},"popularity":{"monthly_downloads":130904,"position":11620,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.0.2"}
