<s> from __future__ import unicode_literals <EOL> from django . db import migrations <EOL> from django . db . models import F <EOL> from django . db . models . functions import Lower <EOL> def lowercase_emails ( apps , schemat_editor ) : <EOL> """<STR_LIT>""" <EOL> Person = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> persons = Person . objects . all ( ) . annotate ( lower_email = Lower ( '<STR_LIT:email>' ) ) <EOL> persons . update ( email = F ( '<STR_LIT>' ) ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( lowercase_emails ) , <EOL> ] </s>
