X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ccacaedf1b6fefd99d9487d004f8bda77efd7794..9f5909ffb6a680a86c2da4a260df92df8e88c3b3:/apps/wiki/models.py?ds=sidebyside 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: