X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/af0452ad29bec28c7095f144e11337e0972b7670..514e98aeae05045d0086aae39960124a572e646f:/apps/wiki/views.py 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)