<s> from __future__ import unicode_literals <EOL> from django . db import migrations <EOL> def forwards ( apps , schema_editor ) : <EOL> if '<STR_LIT>' in schema_editor . connection . introspection . table_names ( ) : <EOL> cursor = schema_editor . connection . cursor ( ) <EOL> cursor . execute ( """<STR_LIT>""" ) <EOL> User = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if User . objects . count ( ) > <NUM_LIT:0> : <EOL> Team = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> Member = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> team = Team . objects . create ( <EOL> name = '<STR_LIT>' , description = '<STR_LIT>' ) <EOL> for user in User . objects . all ( ) : <EOL> Member . objects . create ( <EOL> team = team , user = user , <EOL> role = '<STR_LIT>' if user . is_superuser else '<STR_LIT>' ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( code = forwards ) , <EOL> ] </s>
