fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Poprawki stylu pokazywania przypisów.
[redakcja.git]
/
apps
/
wiki
/
views.py
diff --git
a/apps/wiki/views.py
b/apps/wiki/views.py
index
685e87e
..
baf30a7
100644
(file)
--- 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:
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)
if request.method == 'POST':
form = DocumentForm(request.POST, instance = document)