X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/864b3abeea4d58718f4e04de96278e184af7857b..916dc16ab669079790e11beba72cb14c9b951389:/apps/wiki/views.py?ds=inline diff --git a/apps/wiki/views.py b/apps/wiki/views.py index 685e87e2..baf30a7a 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -18,8 +18,9 @@ def document_detail(request, name, template_name = 'wiki/document_details.html') try: document = storage.get(name) except DocumentNotFound: - document = Document(storage, name = name, text = '') - + # WTF ?! + raise Http404 + # document = Document(storage, name = name, text = '') if request.method == 'POST': form = DocumentForm(request.POST, instance = document)