X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ccacaedf1b6fefd99d9487d004f8bda77efd7794..36139e06f33f12a03c270d8e091fe0e8fc6f8077:/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: