<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> def rename_model_content_type ( apps , schema_editor ) : <EOL> content_types = apps . get_model ( '<STR_LIT>' ) <EOL> content_types . objects . filter ( <EOL> app_label = '<STR_LIT>' , model = '<STR_LIT>' . lower ( ) <EOL> ) . update ( app_label = '<STR_LIT>' ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( rename_model_content_type ) , <EOL> ] </s>
