To implement revision control for document I had to do the following stuff:
- Implement
Revision
,RevisionInfo
andRevisionContent
classes insoc.models.revision
module - Implement
Logic
class for revisions insoc.logic.models.revision
. It overridessoc.logic.models.base.Logic.updateOrCreateFromFields
and defines method to create new revision. - Change forms configuration in
soc.views.models.document.View
UPD: New version of Melange that supports revisions is available at appspot.
No comments:
Post a Comment