<NME> viewsets.py
<BEF> ADDFILE
<MSG> Merge pull request #2159 from jeromelebleu/fix/api-revision

Wrap ModelViewSet requests to a revision block
<DFF> @@ -0,0 +1,11 @@
+"""ViewSet related mixins and tools."""
+
+from reversion.views import RevisionMixin
+
+
+class RevisionModelMixin(RevisionMixin):
+    """
+    A mixin to wrap every request in a revision block.
+    """
+
+    pass

Merge pull request #2159 from jeromelebleu/fix/api-revision