mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 12:31:22 -05:00
681 B
681 B
Critical Implementation Revisions
Phase 1.1: Core Model Updates (2 Days)
- Add lock fields to VersionBranch
- Implement StateMachine base class
- Extend HistoricalChangeMixin with structured diffs
Phase 2.1: Manager Classes (3 Days)
class LockManager(models.Manager):
def get_locked_branches(self):
return self.filter(lock_status__isnull=False)
class StateMachine:
def __init__(self, workflow):
self.states = workflow['states']
self.transitions = workflow['transitions']
Phase 3.1: Security Backports (1 Day)
- Add model clean() validation
- Implement permission check decorators