igor_nadein 7739e7520e feat: Add django-reversion API endpoints for document versions
- Added RevisionMiddleware to settings for automatic user tracking
- Created VersionSerializer and ActivityItemSerializer for version history
- Implemented GET /documents/{id}/versions/ endpoint
- Implemented GET /documents/{id}/activity/ endpoint (versions + audit + acknowledgements)
- Implemented POST /documents/{id}/revert/ endpoint for version rollback
- Activity timeline combines data from reversion, audit log, and acknowledgements
- All endpoints properly serialize user data with avatar support

This unblocks the Activity and Versions tabs in DocumentDetailModal.
2026-02-28 14:29:54 +03:00
..