fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d0b5a
)
stupid bug
author
Jan Szejko
<janek37@gmail.com>
Tue, 16 Jan 2018 10:47:33 +0000
(11:47 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 16 Jan 2018 10:47:33 +0000
(11:47 +0100)
apps/wiki/views.py
patch
|
blob
|
history
diff --git
a/apps/wiki/views.py
b/apps/wiki/views.py
index
05b9031
..
f9a253c
100644
(file)
--- a/
apps/wiki/views.py
+++ b/
apps/wiki/views.py
@@
-92,7
+92,7
@@
def editor(request, slug, chunk=None, template_name='wiki/bootstrap.html'):
else:
text = chunk.materialize()
gallery_dir = os.path.join(settings.MEDIA_ROOT, settings.IMAGE_DIR, chunk.book.gallery)
- materials = set(os.listdir(gallery_dir)) if os.path.isdir(gallery_dir) else
[]
+ materials = set(os.listdir(gallery_dir)) if os.path.isdir(gallery_dir) else
set()
materials.update([n.rsplit('.', 1)[0] for n in materials])
return render(request, template_name, {
'serialized_document_data': json.dumps({