X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..f3e8dfa015744bd72796fdd8eff0d81f863cdc46:/src/picture/migrations/0005_auto_20141022_1001.py diff --git a/src/picture/migrations/0005_auto_20141022_1001.py b/src/picture/migrations/0005_auto_20141022_1001.py index 677877eae..7f8d346ec 100644 --- a/src/picture/migrations/0005_auto_20141022_1001.py +++ b/src/picture/migrations/0005_auto_20141022_1001.py @@ -17,10 +17,10 @@ def rebuild_extra_info(apps, schema_editor): 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', { + html_text = 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)) pic.save()