Shortcuts when using django-reversion in views.
Wrap the every request that isn’t
OPTIONS in a revision block.
The request user will also be added to the revision metadata.
'reversion.middleware.RevisionMiddleware' to your
MIDDLEWARE_CLASSES setting. For Django >= 1.10, add it to your
This will wrap every request that isn’t
OPTIONS in a database transaction. For best performance, consider marking individual views instead.
RevisionMiddleware.manage_manually = False
True, versions will not be saved when a model’s
save()method is called. This allows version control to be switched off for a given revision block.
RevisionMiddleware.using = None
The database to save the revision data. The revision block will be wrapped in a transaction using this database. If
None, the default database for reversion.models.Revision will be used.