<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> AAQ_LANGUAGES = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> def create_aaq_locales ( apps , schema_editor ) : <EOL> QuestionLocale = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> for lang in AAQ_LANGUAGES : <EOL> locale = QuestionLocale ( locale = lang ) <EOL> locale . save ( ) <EOL> def remove_aaq_locales ( apps , schema_editor ) : <EOL> QuestionLocale = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> QuestionLocale ( locale__in = AAQ_LANGUAGES ) . delete ( ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( create_aaq_locales , remove_aaq_locales ) , <EOL> ] </s>
