State Transition System for Django