<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> def create_ratelimit_bypass_perm ( apps , schema_editor ) : <EOL> ContentType = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> global_permission_ct , created = ContentType . objects . get_or_create ( <EOL> model = '<STR_LIT>' , app_label = '<STR_LIT>' ) <EOL> Permission = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> perm = Permission . objects . create ( <EOL> name = '<STR_LIT>' , <EOL> content_type = global_permission_ct , <EOL> codename = '<STR_LIT>' ) <EOL> def remove_ratelimit_bypass_perm ( apps , schema_editor ) : <EOL> Permission = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> perm = Permission . objects . filter ( codename = '<STR_LIT>' ) . delete ( ) <EOL> def create_treejack_switch ( apps , schema_editor ) : <EOL> Switch = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> Switch . objects . create ( <EOL> name = '<STR_LIT>' , <EOL> note = '<STR_LIT>' , <EOL> active = False ) <EOL> def remove_treejack_switch ( apps , schema_editor ) : <EOL> Switch = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> Switch . objects . filter ( name = '<STR_LIT>' ) . delete ( ) <EOL> def create_refresh_survey_flag ( apps , schema_editor ) : <EOL> Sample = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> Sample . objects . get_or_create ( <EOL> name = '<STR_LIT>' , <EOL> note = '<STR_LIT>' , <EOL> percent = <NUM_LIT> ) <EOL> def remove_refresh_survey_flag ( apps , schema_editor ) : <EOL> Sample = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> Sample . objects . filter ( name = '<STR_LIT>' ) . delete ( ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( create_ratelimit_bypass_perm , remove_ratelimit_bypass_perm ) , <EOL> migrations . RunPython ( create_treejack_switch , remove_treejack_switch ) , <EOL> migrations . RunPython ( create_refresh_survey_flag , remove_refresh_survey_flag ) , <EOL> ] </s>
