X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/befc2441c91ddbd8eea67b8d8de48cc281a4bbce..f734261e68dc171da98aabe700e170c3ede3b6a5:/apps/wiki/forms.py?ds=sidebyside diff --git a/apps/wiki/forms.py b/apps/wiki/forms.py index e2474874..836d8f0d 100644 --- a/apps/wiki/forms.py +++ b/apps/wiki/forms.py @@ -24,4 +24,5 @@ class DocumentForm(forms.Form): document = Document(self.get_storage(), name=self.cleaned_data['name'], text=self.cleaned_data['text']) storage.put(document, self.cleaned_data['author'], self.cleaned_data['comment'], self.cleaned_data['revision']) + return storage.get(self.cleaned_data['name'])