Re:Django Styleguide
by cproctor on Wednesday January 11, 2023 @12:07PM
(#34340949)
I've found it helpful in several projects to implement the "services layer" described here as a state machine, modeling state transitions for a central object (e.g. an article can be drafted, submitted, reviewed, published). The state machine enforces permissible transitions and handles side effects which touch other models.
[ Parent
| on HN ]
There are no comments on this comment yet.