X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ccacaedf1b6fefd99d9487d004f8bda77efd7794..d0f4d65ea3c131745a0d5412f804f92369004e65:/apps/wiki/models.py diff --git a/apps/wiki/models.py b/apps/wiki/models.py index ec9ded50..7cb20c65 100644 --- a/apps/wiki/models.py +++ b/apps/wiki/models.py @@ -53,9 +53,8 @@ class DocumentStorage(object): text, rev = self.vstorage.page_text_by_tag(name, tag) return Document(self, name=name, text=text, revision=rev) - def revert(self, name, revision): - text, rev = self.vstorage.revert(name, revision) - return Document(self, name=name, text=text, revision=rev) + def revert(self, name, revision, **commit_args): + self.vstorage.revert(name, revision, **commit_args) def get_or_404(self, *args, **kwargs): try: