<s> from __future__ import unicode_literals <EOL> from django . db import migrations , models <EOL> def render_comments ( apps , schema_editor ) : <EOL> from ... core . utils . markdown import Markdown <EOL> Comment = apps . get_model ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> for comment in Comment . objects . all ( ) : <EOL> comment . comment_html = Markdown ( ) . render ( comment . comment ) <EOL> comment . save ( ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( render_comments ) , <EOL> ] </s>
