Models and Admin improvements to django-workflows
Changes included in this PR
- Created initial migration for south
- Added missing file “workflows_tags.py”
- Improve State models:
- added 'codename' field
- added 'description' field
- added 'state_position' field (requires django-positions) to optionally list all states of a specific Workflow in arbitrary order
- TransitionObjectRelation model added to optionally keep track of work flow history of every object; specify the optional parameter "user" in set_state() in order to record the transition
- unit tests updated to take into account the uniqueness of new State.codename attribute
- optional “direction” flag added to Transition
- Improved admin
Diefenbach, I've been using your "django-workflows" app in a project, and accumulated some improvements in time. Unfortunately, Github wasn't in use during project development, so my only option now is to propose all modifications at once with a single Pull Request. I tried to split all code modifications in reasonable commits, so you can better verify the proposal in order to decide whether to include it in the original branch or not. In case, it is my intention to share more work (and possibly, ehm, some specific unit tests) I've planned for the following week; should you be interested in discussing it, please let me know. Thank you for sharing "workflows" app, which be the way reminds me the old days when I used to work with Plone ;)