X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/084544e4f7c9269b1445a9e5109fa641a3e1aaac..78943ca7de03a0f59b072c71540be92b5a6d433f:/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'])