fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
picture tags, areas overhaul #1
[wolnelektury.git]
/
apps
/
picture
/
tasks.py
diff --git
a/apps/picture/tasks.py
b/apps/picture/tasks.py
index
b823f26
..
1b47076
100644
(file)
--- a/
apps/picture/tasks.py
+++ b/
apps/picture/tasks.py
@@
-18,8
+18,8
@@
def generate_picture_html(picture_id):
html_text = unicode(render_to_string('picture/picture_info.html', {
html_text = unicode(render_to_string('picture/picture_info.html', {
- 'things': pic.areas['things'],
- 'themes': pic.areas['themes'],
+ 'things': pic.areas
_json
['things'],
+ 'themes': pic.areas
_json
['themes'],
}))
pic.html_file.save("%s.html" % pic.slug, ContentFile(html_text))
}))
pic.html_file.save("%s.html" % pic.slug, ContentFile(html_text))