X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/084544e4f7c9269b1445a9e5109fa641a3e1aaac..61c3753c6e0c567ccbb11115c787da22218ab5f6:/apps/wiki/forms.py 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'])