+ areas_json = pic.areas_json
+ for field in areas_json[u'things'].values():
+ field[u'object'] = field[u'object'].capitalize()
+ pic.areas_json = areas_json
+ html_text = unicode(render_to_string('picture/picture_info.html', {
+ 'things': pic.areas_json['things'],
+ 'themes': pic.areas_json['themes'],
+ }))
+ pic.html_file.save("%s.html" % pic.slug, ContentFile(html_text))