~/talk

"Workflow Management Using Finite State Machine in Django"

Talkat IndyPy Python Web Conf 2019 · on Friday, 2019-08-23· [python, software-architecture]
slides:none on file

Shows how to instrument Django models with an actual finite state machine using django-fsm and its add-ons so transitions are methods not ad‑hoc field edits. Demonstrates FSMIntegerField choices, pre/post signals, concurrent locking requirements, a middleware pattern to inject the current user, and automatic audit entries with django-fsm-log. Covers admin integration with guarded buttons, the management command that emits graphviz diagrams, and practical tips like using the FSM admin commit flag to make state changes safe and auditable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26What are workflows
  3. 3:11Simple workflow example
  4. 4:36Limitations of boolean fields
  5. 6:02Collaboration workflows
  6. 7:06Real-world workflow example
  7. 8:51Cancer research workflow
  8. 12:49Workflow in Django
  9. 15:17Introducing Django FSM
  10. 16:21Django FSM basics
  11. 18:04FSM field setup
  12. 20:11Defining workflow states
  13. 20:53Model transitions
  14. 23:48Handling errors in transitions
  15. 25:14Permissions in transitions
  16. 28:09Convenience methods
  17. 30:38FSM signals
  18. 31:40Post-transition actions
  19. 32:42Tracking user actions
  20. 34:11Concurrent locking
  21. 34:54Audit logging
  22. 35:59Going all-in with FSM
  23. 36:41Django admin integration
  24. 37:48Bonus: Graph transitions
  25. 39:33Visualizing workflows
  26. 39:54Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.